1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Move logout tray menu action after profileForm initialization

fixes #2541
This commit is contained in:
agilob 2015-11-09 18:48:00 +00:00
parent 49bf1cf774
commit 0b999e077e
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -135,7 +135,6 @@ void Widget::init()
actionLogout = new QAction(this);
actionLogout->setIcon(prepareIcon(":/img/others/logout-icon.svg", icon_size, icon_size));
connect(actionLogout, &QAction::triggered, profileForm, &ProfileForm::onLogoutClicked);
actionQuit = new QAction(this);
actionQuit->setMenuRole(QAction::QuitRole);
@ -227,6 +226,9 @@ void Widget::init()
profileForm = new ProfileForm();
settingsWidget = new SettingsWidget();
//connect logout tray menu action
connect(actionLogout, &QAction::triggered, profileForm, &ProfileForm::onLogoutClicked);
Core* core = Nexus::getCore();
connect(core, &Core::fileDownloadFinished, filesForm, &FilesForm::onFileDownloadComplete);
connect(core, &Core::fileUploadFinished, filesForm, &FilesForm::onFileUploadComplete);