Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4c305e52
Commit
4c305e52
authored
Sep 17, 2016
by
Don Gagne
Browse files
Switch to native file dialogs
parent
adf3fd90
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QGCFileDialog.cc
View file @
4c305e52
...
...
@@ -204,16 +204,12 @@ QString QGCFileDialog::_getFirstExtensionInFilter(const QString& filter) {
/// @brief Validates and updates the parameters for the file dialog calls
void
QGCFileDialog
::
_validate
(
Options
&
options
)
{
Q_UNUSED
(
options
)
// You can't use QGCFileDialog if QGCApplication is not created yet.
Q_ASSERT
(
qgcApp
());
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
())
{
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment