Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

[qt6] Avoid crash when trying to open Preferences dialog

Dmitry Kazakov748536388044
diff --git a/libs/ui/dialogs/kis_dlg_preferences.cc b/libs/ui/dialogs/kis_dlg_preferences.cc
index f00cf3bdbd..f3c14acc12 100644
--- a/libs/ui/dialogs/kis_dlg_preferences.cc
+++ b/libs/ui/dialogs/kis_dlg_preferences.cc
@@ -2353,6 +2353,8 @@ KisDlgPreferences::KisDlgPreferences(QWidget* parent, const char* name)
}
}
+ // TODO QT6: check what this code actually does?
+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
{
// HACK ALERT! Remove title widget background, thus making
// it consistent across all systems
@@ -2364,6 +2366,7 @@ KisDlgPreferences::KisDlgPreferences(QWidget* parent, const char* name)
}
}
}
+#endif
}
KisDlgPreferences::~KisDlgPreferences()