X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreconnectdlg.cpp;h=d61a021108e8e4faf2df65574956f0dae6a4d5a3;hp=6903d93741e771b53b5d6d56d9e8a5af2d286171;hb=0d49f7e83bd1055711e66aa880f3a0d62f7eefc9;hpb=f4ae0007ac4524612ae73a778ca491659cf22393 diff --git a/src/qtui/coreconnectdlg.cpp b/src/qtui/coreconnectdlg.cpp index 6903d937..d61a0211 100644 --- a/src/qtui/coreconnectdlg.cpp +++ b/src/qtui/coreconnectdlg.cpp @@ -24,11 +24,11 @@ #include "coreconnectdlg.h" +#include "client.h" #include "clientsettings.h" #include "clientsyncer.h" #include "coreconfigwizard.h" #include "iconloader.h" -#include "monoapplication.h" CoreConnectDlg::CoreConnectDlg(bool autoconnect, QWidget *parent) : QDialog(parent) @@ -44,6 +44,8 @@ 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; @@ -214,13 +216,13 @@ void CoreConnectDlg::on_accountButtonBox_accepted() { } void CoreConnectDlg::on_useInternalCore_clicked() { - // FIXME: this needs to be a qobject_cast - therefore MonolithicApplication needs to be a proper QObject... :/ - MonolithicApplication *monoApp = static_cast(QApplication::instance()); - if(monoApp) { - qDebug() << "starting core..."; - monoApp->startInternalCore(); - monoApp->connectClientSyncer(clientSyncer); - } +// // 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(); }