From: Antonio Rojas Date: Sun, 19 Jul 2020 14:02:02 +0000 (-0600) Subject: Fix "Show folders, tabs, and window state from last time" feature X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ce981c3e4af725646afe6e1916c508233188091e 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 --- 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; }