mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 05:20:00 +02:00
get file dialog working on Linux
This commit is contained in:
parent
f6b1ef85b3
commit
60b8e65520
1 changed files with 2 additions and 1 deletions
|
@ -622,7 +622,8 @@ QScriptValue WindowScriptingInterface::showBrowse(const QString& title, const QS
|
|||
fileDialog.setAcceptMode(acceptMode);
|
||||
QUrl fileUrl(directory);
|
||||
if (acceptMode == QFileDialog::AcceptSave) {
|
||||
fileDialog.setFileMode(QFileDialog::Directory);
|
||||
// TODO -- Setting this breaks the dialog on Linux. Does it help something on other platforms?
|
||||
// fileDialog.setFileMode(QFileDialog::Directory);
|
||||
fileDialog.selectFile(fileUrl.fileName());
|
||||
}
|
||||
if (fileDialog.exec()) {
|
||||
|
|
Loading…
Reference in a new issue