Skip to content

Commit f1208e3

Browse files
committed
Native filedialog only for Linux and BSD
1 parent c25ecd8 commit f1208e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gui/main_gui.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ int main(int argc, char *argv[])
2121
{
2222
QApplication app(argc, argv);
2323
QMainWindow *wndw = new QMainWindow;
24+
25+
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
26+
#if defined(__unix__) || defined(__linux__)
2427
app.setAttribute(Qt::AA_DontUseNativeDialogs, true);
28+
#endif
29+
#endif
30+
2531
mainwindow mw(wndw, &app);
2632

2733
mw.show();

0 commit comments

Comments
 (0)