Fix build on Mac OS X.

This commit is contained in:
Roman Telezhynskyi 2020-04-23 21:17:49 +03:00
parent a6677523b8
commit e09c8de9c8

View File

@ -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())
{ {