X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fcoreconnectdlg.cpp;h=d61a021108e8e4faf2df65574956f0dae6a4d5a3;hb=0d49f7e83bd1055711e66aa880f3a0d62f7eefc9;hp=3f6d120816f7bd520ece8213a25adb3aaaea1d0d;hpb=7420347c74eee96531879e62fbadb1c787fcbde9;p=quassel.git diff --git a/src/qtui/coreconnectdlg.cpp b/src/qtui/coreconnectdlg.cpp index 3f6d1208..d61a0211 100644 --- a/src/qtui/coreconnectdlg.cpp +++ b/src/qtui/coreconnectdlg.cpp @@ -24,6 +24,7 @@ #include "coreconnectdlg.h" +#include "client.h" #include "clientsettings.h" #include "clientsyncer.h" #include "coreconfigwizard.h" @@ -43,6 +44,9 @@ CoreConnectDlg::CoreConnectDlg(bool autoconnect, QWidget *parent) setWindowFlags(Qt::Sheet); clientSyncer = new ClientSyncer(this); + connect(this, SIGNAL(newClientSyncer(ClientSyncer *)), Client::instance(), SIGNAL(newClientSyncer(ClientSyncer *))); + emit newClientSyncer(clientSyncer); // announce the new client syncer via the client. + wizard = 0; doingAutoConnect = false; @@ -211,6 +215,18 @@ void CoreConnectDlg::on_accountButtonBox_accepted() { connectToCore(); } +void CoreConnectDlg::on_useInternalCore_clicked() { +// // FIXME: this needs to be a qobject_cast - therefore MonolithicApplication needs to be a proper QObject... :/ +// MonolithicApplication *monoApp = qobject_cast(QApplication::instance()); +// if(monoApp) { +// qDebug() << "starting core..."; +// monoApp->startInternalCore(); +// monoApp->connectClientSyncer(clientSyncer); +// } + clientSyncer->useInternalCore(); + startSync(); +} + /***************************************************** * Connecting to the Core ****************************************************/