From ce981c3e4af725646afe6e1916c508233188091e Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 19 Jul 2020 08:02:02 -0600 Subject: [PATCH] Fix "Show folders, tabs, and window state from last time" feature We were using the DBus interface before declaring it, oops. BUG: 422300 FIXED-IN: 20.08.0 --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 802e64d25..f0336f628 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -178,6 +178,9 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) mainWindow->show(); + KDBusService dolphinDBusService; + DBusInterface interface; + if (!app.isSessionRestored()) { KConfigGui::setSessionConfig(QStringLiteral("dolphin"), QStringLiteral("dolphin")); } @@ -200,8 +203,5 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) } } - KDBusService dolphinDBusService; - DBusInterface interface; - return app.exec(); // krazy:exclude=crash; } -- 2.47.3