prohibit multiple executions of Quassel::init()
authorMarcus Eggenberger <egs@quassel-irc.org>
Tue, 21 Oct 2008 21:17:35 +0000 (23:17 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Tue, 21 Oct 2008 21:17:35 +0000 (23:17 +0200)
src/common/quassel.cpp

index f1d37c5..dd6c5e7 100644 (file)
@@ -72,8 +72,10 @@ Quassel::~Quassel() {
 }
 
 bool Quassel::init() {
-  if(_initialized) return true;  // allow multiple invocations because of MonolithicApplication
+  if(_initialized)
+    return true;  // allow multiple invocations because of MonolithicApplication
 
+  _initialized = true;
   qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
 
   registerMetaTypes();