From f16d9e350332045e920d3e12fcada26f573c1a6a Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Mon, 11 Jul 2016 13:58:55 +0200 Subject: [PATCH] make sure session ID update arrives --- adminapp/main.cpp | 1 + src/main.cpp | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) 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; -- 1.7.2.5