Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ auto main(int argc, char** argv) -> std::int32_t {
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif

// Keep using Qt's own dialogs. The Plasma platform theme creates a helper QMessageBox
// for every native message dialog, marks it WA_DeleteOnClose and keeps a raw pointer
// to it. QDialog::exec() deletes that helper dialog when it closes, so the later
// hide() call from ~QMessageBox dereferences freed memory and can kill the app.
QApplication::setAttribute(Qt::AA_DontUseNativeDialogs);

/// 2. Application identification
QApplication::setOrganizationName("cachyos");
QApplication::setOrganizationDomain("cachyos.org");
Expand Down