! * \brief Called when the client disconnects from the host */
| 663 | * \brief Called when the client disconnects from the host |
| 664 | */ |
| 665 | void MQTTConnectionManagerWidget::onDisconnect() { |
| 666 | RESET_CURSOR; |
| 667 | if (m_testTimer->isActive()) { |
| 668 | KMessageBox::error( |
| 669 | this, |
| 670 | i18n("Disconnected from the broker '%1:%2' before the connection was successful.", m_currentConnection->hostName, m_currentConnection->port), |
| 671 | i18n("Connection Failed")); |
| 672 | m_testTimer->stop(); |
| 673 | } |
| 674 | } |