Fix compiler warning on OS X and Windows.

This commit is contained in:
Felix Geyer 2015-09-24 18:45:23 +02:00
parent 54f44f5267
commit 2edf414aa4

View File

@ -67,6 +67,7 @@ QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QSt
QString result; QString result;
#if defined(Q_OS_MAC) || defined(Q_OS_WIN) #if defined(Q_OS_MAC) || defined(Q_OS_WIN)
Q_UNUSED(defaultExtension);
// the native dialogs on these platforms already append the file extension // the native dialogs on these platforms already append the file extension
result = QFileDialog::getSaveFileName(parent, caption, dir, filter, result = QFileDialog::getSaveFileName(parent, caption, dir, filter,
selectedFilter, options); selectedFilter, options);