]> git.sesse.net Git - nageru/commitdiff
Fix an uninitialized option set.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 1 Sep 2018 19:45:05 +0000 (21:45 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 1 Sep 2018 19:45:05 +0000 (21:45 +0200)
input_mapping_dialog.cpp

index e26649d544fea217778145e1b0ea66daecaf019f..23e889531e354fc04589b0fc09ac72c84ff4d648 100644 (file)
@@ -272,7 +272,7 @@ void InputMappingDialog::save_clicked()
        // The native file dialog uses GTK+, which interferes with CEF's use of the GLib main loop.
        QFileDialog::Option options(QFileDialog::DontUseNativeDialog);
 #else
-       QFileDialog::Option options;
+       QFileDialog::Option options(QFileDialog::Option(0));
 #endif
        QString filename = QFileDialog::getSaveFileName(this,
                "Save input mapping", QString(), tr("Mapping files (*.mapping)"), /*selectedFilter=*/nullptr, options);
@@ -292,7 +292,7 @@ void InputMappingDialog::load_clicked()
        // The native file dialog uses GTK+, which interferes with CEF's use of the GLib main loop.
        QFileDialog::Option options(QFileDialog::DontUseNativeDialog);
 #else
-       QFileDialog::Option options;
+       QFileDialog::Option options(QFileDialog::Option(0));
 #endif
        QString filename = QFileDialog::getOpenFileName(this,
                "Load input mapping", QString(), tr("Mapping files (*.mapping)"), /*selectedFilter=*/nullptr, options);