Commit 4c305e52 authored by Don Gagne's avatar Don Gagne

Switch to native file dialogs

parent adf3fd90
...@@ -204,16 +204,12 @@ QString QGCFileDialog::_getFirstExtensionInFilter(const QString& filter) { ...@@ -204,16 +204,12 @@ QString QGCFileDialog::_getFirstExtensionInFilter(const QString& filter) {
/// @brief Validates and updates the parameters for the file dialog calls /// @brief Validates and updates the parameters for the file dialog calls
void QGCFileDialog::_validate(Options& options) void QGCFileDialog::_validate(Options& options)
{ {
Q_UNUSED(options)
// You can't use QGCFileDialog if QGCApplication is not created yet. // You can't use QGCFileDialog if QGCApplication is not created yet.
Q_ASSERT(qgcApp()); Q_ASSERT(qgcApp());
Q_ASSERT_X(QThread::currentThread() == qgcApp()->thread(), "Threading issue", "QGCFileDialog can only be called from main thread"); Q_ASSERT_X(QThread::currentThread() == qgcApp()->thread(), "Threading issue", "QGCFileDialog can only be called from main thread");
#ifdef __mobile__
Q_UNUSED(options)
#else
// On OSX native dialog can hang so we always use Qt dialogs
options |= DontUseNativeDialog;
#endif
if (MainWindow::instance()) { if (MainWindow::instance()) {
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment