]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Utilize KXMLGUI API to store state config in separate file
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 30 Sep 2021 05:31:58 +0000 (07:31 +0200)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 20 Oct 2021 16:07:11 +0000 (16:07 +0000)
CCBUG: 397602

src/dolphinmainwindow.cpp

index ec15bb978a0b012d57feaf9abdcaa45018bf9fd3..bb05fef0870a9052eb4ae33a4e6ec49fb219c2d2 100644 (file)
@@ -64,6 +64,7 @@
 #include <KUrlNavigator>
 #include <KWindowSystem>
 #include <KXMLGUIFactory>
+#include <kxmlgui_version.h>
 
 #include <kio_version.h>
 
@@ -122,6 +123,10 @@ DolphinMainWindow::DolphinMainWindow() :
     setComponentName(QStringLiteral("dolphin"), QGuiApplication::applicationDisplayName());
     setObjectName(QStringLiteral("Dolphin#"));
 
+#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 88, 0)
+    setStateConfigGroup("State");
+#endif
+
     connect(&DolphinNewFileMenuObserver::instance(), &DolphinNewFileMenuObserver::errorMessage,
             this, &DolphinMainWindow::showErrorMessage);