Showing the changes to interface/src/Menu.cpp (1 of 5 files). Show all
Unified · Split
| @@ -714,10 +714,11 @@ void Menu::loginForCurrentDomain() { · 713 unmodified lines | |||
| 714 | 714 | ||
| 715 | void Menu::editPreferences() { | 715 | void Menu::editPreferences() { |
| 716 | if (!_preferencesDialog) { | 716 | if (!_preferencesDialog) { |
| 717 | _preferencesDialog = new PreferencesDialog(Application::getInstance()->getWindow()); | 717 | Application::getInstance()->getWindow()->addDockWidget(Qt::LeftDockWidgetArea, _preferencesDialog = new PreferencesDialog()); |
| 718 | _preferencesDialog->show(); | 718 | } else { |
| 719 | Application::getInstance()->getWindow()->removeDockWidget(_preferencesDialog); | ||
| 720 | _preferencesDialog->close(); | ||
| 719 | } | 721 | } |
| 720 | _preferencesDialog->raise(); | ||
| 721 | } | 722 | } |
| 722 | 723 | ||
| 723 | void Menu::goToDomain(const QString newDomain) { | 724 | void Menu::goToDomain(const QString newDomain) { |