Showing the changes to interface/src/Menu.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1047,8 +1047,8 @@ void Menu::showChat() { · 1046 unmodified lines | |||
| 1047 | Application::getInstance()->getWindow()->addDockWidget(Qt::RightDockWidgetArea, _chatWindow = new ChatWindow()); | 1047 | Application::getInstance()->getWindow()->addDockWidget(Qt::RightDockWidgetArea, _chatWindow = new ChatWindow()); |
| 1048 | 1048 | ||
| 1049 | } else { | 1049 | } else { |
| 1050 | if (!_chatWindow->isVisible()) { | 1050 | if (!_chatWindow->toggleViewAction()->isChecked()) { |
| 1051 | _chatWindow->show(); | 1051 | _chatWindow->toggleViewAction()->trigger(); |
| 1052 | } | 1052 | } |
| 1053 | } | 1053 | } |
| 1054 | } | 1054 | } |
| @@ -1056,8 +1056,8 @@ void Menu::showChat() { · 1 unmodified line | |||
| 1056 | void Menu::toggleChat() { | 1056 | void Menu::toggleChat() { |
| 1057 | #ifdef HAVE_QXMPP | 1057 | #ifdef HAVE_QXMPP |
| 1058 | _chatAction->setEnabled(XmppClient::getInstance().getXMPPClient().isConnected()); | 1058 | _chatAction->setEnabled(XmppClient::getInstance().getXMPPClient().isConnected()); |
| 1059 | if (!_chatAction->isEnabled() && _chatWindow) { | 1059 | if (!_chatAction->isEnabled() && _chatWindow && _chatWindow->toggleViewAction()->isChecked()) { |
| 1060 | _chatWindow->hide(); | 1060 | _chatWindow->toggleViewAction()->trigger(); |
| 1061 | } | 1061 | } |
| 1062 | #endif | 1062 | #endif |
| 1063 | } | 1063 | } |