Make --norestore work again
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 26 Dec 2008 12:24:01 +0000 (13:24 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 26 Dec 2008 12:24:06 +0000 (13:24 +0100)
src/core/coreapplication.cpp

index 9ad452e..ca0f527 100644 (file)
@@ -52,8 +52,12 @@ bool CoreApplicationInternal::init() {
   Core::instance();  // create and init the core
   _coreCreated = true;
 
   Core::instance();  // create and init the core
   _coreCreated = true;
 
+#ifdef HAVE_KDE
   // if using KDE, option is called "restore" instead of "norestore"
   // 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;
     Core::restoreState();
 
   return true;