diff --git a/src/model/profile/profileinfo.cpp b/src/model/profile/profileinfo.cpp index 1e4397b99..bd9ccb1bc 100644 --- a/src/model/profile/profileinfo.cpp +++ b/src/model/profile/profileinfo.cpp @@ -226,8 +226,10 @@ QStringList ProfileInfo::removeProfile() */ void ProfileInfo::logout() { + // TODO(kriby): Refactor all of these invokeMethod calls with connect() properly when possible Settings::getInstance().saveGlobal(); - QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin"); + QMetaObject::invokeMethod(&Nexus::getInstance(), "showLogin", + Q_ARG(QString, Settings::getInstance().getCurrentProfile())); } /**