Skip to content

Commit

Permalink
Add workaround for application quitting when opening file dialog in K…
Browse files Browse the repository at this point in the history
…DE (#478)
  • Loading branch information
equeim committed Apr 1, 2024
1 parent b0bb2ec commit eac4c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/startup/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ int main(int argc, char** argv) {
const QApplication app(argc, argv);
QGuiApplication::setQuitOnLastWindowClosed(false);

// Workaround for application quitting when creating QFileDialog in KDE
// https://bugs.kde.org/show_bug.cgi?id=471941
// https://bugs.kde.org/show_bug.cgi?id=483439
QCoreApplication::setQuitLockEnabled(false);

if constexpr (targetOs == TargetOs::Windows) {
windowsInitApplication();
}
Expand Down

0 comments on commit eac4c36

Please sign in to comment.