From 84afdd46cb8ebfe821825efcf997a2041e513f71 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Tue, 21 Oct 2008 23:17:35 +0200 Subject: [PATCH] prohibit multiple executions of Quassel::init() --- src/common/quassel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/quassel.cpp b/src/common/quassel.cpp index f1d37c5c..dd6c5e70 100644 --- a/src/common/quassel.cpp +++ b/src/common/quassel.cpp @@ -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(); -- 2.20.1