┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2021-09-30 07:31:58 +0200
committerAlexander Lohnau <[email protected]>2021-10-20 16:07:11 +0000
commit946b911a5d340d7672db9802579f658aeba738b0 (patch)
tree2557df45e14386c4320b0372748bb55b1dc7ed67 /src
parent73082d2e42180d3795014738499109c839705622 (diff)
Utilize KXMLGUI API to store state config in separate file
CCBUG: 397602
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index ec15bb978..bb05fef08 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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);