Fix build on Mac OS X.
This commit is contained in:
parent
a6677523b8
commit
e09c8de9c8
|
@ -456,12 +456,7 @@ void PuzzleMainWindow::Open()
|
||||||
dir = QFileInfo(recentFiles.first()).absolutePath();
|
dir = QFileInfo(recentFiles.first()).absolutePath();
|
||||||
}
|
}
|
||||||
qCDebug(pWindow, "Run QFileDialog::getOpenFileName: dir = %s.", qUtf8Printable(dir));
|
qCDebug(pWindow, "Run QFileDialog::getOpenFileName: dir = %s.", qUtf8Printable(dir));
|
||||||
const QString filePath = QFileDialog::getOpenFileName(
|
const QString filePath = QFileDialog::getOpenFileName(this, tr("Open file"), dir, filter, nullptr);
|
||||||
this, tr("Open file"), dir, filter, nullptr,
|
|
||||||
#ifdef Q_OS_LINUX
|
|
||||||
QFileDialog::DontUseNativeDialog
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
|
|
||||||
if (filePath.isEmpty())
|
if (filePath.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user