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:
parent
49bf1cf774
commit
0b999e077e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user