X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.cpp;h=ca0f5273310cfe3b6a674be1a68257bfe718fe6c;hp=9ad452ed78e6ec24fb2995844288147d383345b3;hb=a454ca7a22c1b3d9faf1f0fb8b1c9d7d0aa7847c;hpb=96c9508110f38a19be161652ea888c7d61ba279b diff --git a/src/core/coreapplication.cpp b/src/core/coreapplication.cpp index 9ad452ed..ca0f5273 100644 --- a/src/core/coreapplication.cpp +++ b/src/core/coreapplication.cpp @@ -52,8 +52,12 @@ bool CoreApplicationInternal::init() { Core::instance(); // create and init the core _coreCreated = true; +#ifdef HAVE_KDE // if using KDE, option is called "restore" instead of "norestore" - if(Quassel::isOptionSet("restore") || !Quassel::isOptionSet("norestore")) + if(Quassel::isOptionSet("restore")) +#else + if(!Quassel::isOptionSet("norestore")) +#endif Core::restoreState(); return true;