X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.cpp;h=e63c4d221d1e795b7341aea7f79f154f3ae1d712;hp=a63ec55811cf7011f1158fb5b78c998a286ad11f;hb=17331c42de77ff91ce297354f9ba9eed6ecb4256;hpb=1eb21546673535f5707aa6346e8c749b928cd772 diff --git a/src/qtui/monoapplication.cpp b/src/qtui/monoapplication.cpp index a63ec558..e63c4d22 100644 --- a/src/qtui/monoapplication.cpp +++ b/src/qtui/monoapplication.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -30,7 +30,7 @@ MonolithicApplication::MonolithicApplication(int &argc, char **argv) _internalInitDone(false) { _internal = new CoreApplicationInternal(); // needed for parser options - setRunMode(Monolithic); + setRunMode(Quassel::Monolithic); } bool MonolithicApplication::init() { @@ -53,16 +53,15 @@ MonolithicApplication::~MonolithicApplication() { } void MonolithicApplication::newClientSyncer(ClientSyncer *syncer) { - connect(syncer, SIGNAL(startInternalCore()), this, SLOT(startInternalCore())); + connect(syncer, SIGNAL(startInternalCore(ClientSyncer *)), this, SLOT(startInternalCore(ClientSyncer *))); } -void MonolithicApplication::startInternalCore() { +void MonolithicApplication::startInternalCore(ClientSyncer *syncer) { if(!_internalInitDone) { _internal->init(); _internalInitDone = true; } Core *core = Core::instance(); - ClientSyncer *syncer = static_cast(sender()); connect(syncer, SIGNAL(connectToInternalCore(SignalProxy *)), core, SLOT(setupInternalClientSession(SignalProxy *))); connect(core, SIGNAL(sessionState(const QVariant &)), syncer, SLOT(internalSessionStateReceived(const QVariant &))); }