diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-11-16 12:30:51 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-11-16 12:30:51 +0800 |
commit | af657df8a4accb3758138769e3cc5b86530b57d5 (patch) | |
tree | 9563dc2e9b1ea36dc4d50be52c2e1d717f1fb8d6 /qmidiplayer-desktop/qmpdevpropdialog.cpp | |
parent | c12df3744f04716e88e905888beeaaa4f331d687 (diff) | |
download | QMidiPlayer-af657df8a4accb3758138769e3cc5b86530b57d5.tar.xz |
Even more fixes for Microsoft(R) Windows(R) operating system.
Device initalization file dialog doesn't work correctly on Windows.
Make hiding console an option on Windows.
For some dumb reason preset selection dialog refuses to work if no
soundfont is selected.
Diffstat (limited to 'qmidiplayer-desktop/qmpdevpropdialog.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpdevpropdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpdevpropdialog.cpp b/qmidiplayer-desktop/qmpdevpropdialog.cpp index 82136dc..64c385d 100644 --- a/qmidiplayer-desktop/qmpdevpropdialog.cpp +++ b/qmidiplayer-desktop/qmpdevpropdialog.cpp @@ -21,7 +21,7 @@ qmpDevPropDialog::qmpDevPropDialog(QWidget *parent) : this->ui->twProps->edit(ui->twProps->model()->index(r,c)); if(c==3) { - QString p=QFileDialog::getOpenFileUrl(this,"Select Device Initialization File",QUrl()).path(); + QString p=QFileDialog::getOpenFileUrl(this,"Select Device Initialization File",QUrl()).toLocalFile(); if(p.length())this->ui->twProps->item(r,2)->setText(p); } }); |