make sure session ID update arrives
authorKonrad Rosenbaum <konrad@silmor.de>
Mon, 11 Jul 2016 11:58:55 +0000 (13:58 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Mon, 11 Jul 2016 11:58:55 +0000 (13:58 +0200)
adminapp/main.cpp
src/main.cpp

index 27d1c10..30ba658 100644 (file)
@@ -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;
index 082ec33..9fdaabb 100644 (file)
@@ -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;