projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81b7a76
)
prohibit multiple executions of Quassel::init()
author
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 21 Oct 2008 21:17:35 +0000
(23:17 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Tue, 21 Oct 2008 21:17:35 +0000
(23:17 +0200)
src/common/quassel.cpp
patch
|
blob
|
history
diff --git
a/src/common/quassel.cpp
b/src/common/quassel.cpp
index
f1d37c5
..
dd6c5e7
100644
(file)
--- a/
src/common/quassel.cpp
+++ b/
src/common/quassel.cpp
@@
-72,8
+72,10
@@
Quassel::~Quassel() {
}
bool Quassel::init() {
}
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();
qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
registerMetaTypes();