Commit 2428ffc9 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[FIX #404] Implemented workaround for Qt Bug:...

[FIX #404] Implemented workaround for Qt Bug: https://bugreports.qt.io/browse/QTBUG-38303. This affects only Mac OS. The workaround disable file filters for Mac systems, by using the '*' filter.
parent a104fbfe
......@@ -680,7 +680,14 @@ QString collectFilters()
result += description + QString( "(*" ) + extension + QString( ");;" );
}
return QString( "Known file types (" ) + all + QString( ");;" ) + result;
// math: on 11. Aug. 2015, related issue: http://www.openwalnut.org/issues/404
// The following #ifdef is due to the following QT-Bug: https://bugreports.qt.io/browse/QTBUG-38303
// Hence, we use any file as known file type for MAC OSX only.
#ifdef Q_OS_OSX
return QString( "Known file types (* " ) + all + QString( ");;" ) + result;
#else
return QString( "Known file types (" ) + all + QString( ");;" ) + result;
#endif
}
void WMainWindow::openLoadDialog()
......
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