From: Konrad Rosenbaum Date: Mon, 11 Jul 2016 11:58:55 +0000 (+0200) Subject: make sure session ID update arrives X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=f16d9e350332045e920d3e12fcada26f573c1a6a;p=web%2Fkonrad%2Fsmoke.git make sure session ID update arrives --- diff --git a/adminapp/main.cpp b/adminapp/main.cpp index 27d1c10..30ba658 100644 --- a/adminapp/main.cpp +++ b/adminapp/main.cpp @@ -39,6 +39,7 @@ int main(int argc,char**argv) ms->loginSession(sc.currentUsername(), sc.currentSessionId()); ms->initialize(); MAclWindow::showWindow(nullptr); + QObject::connect(&sc,SIGNAL(sessionIdChanged(QString)),ms,SLOT(setSessionId(QString))); }else{ qDebug()<<"Unable to get session. Giving up."; return 1; diff --git a/src/main.cpp b/src/main.cpp index 082ec33..9fdaabb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,6 +43,7 @@ int MagicSmokeMain::realmain(int argc,char**argv) ms->initialize(); MOverview *mo=new MOverview(sc.currentProfileId()); mo->showRestored(); + QObject::connect(&sc,SIGNAL(sessionIdChanged(QString)),ms,SLOT(setSessionId(QString))); }else{ qDebug()<<"Unable to get session. Giving up."; return 1;