diff --git a/src/lib/gui/core/ClientConnection.cpp b/src/lib/gui/core/ClientConnection.cpp index bad0a7c4c..8b83c890c 100644 --- a/src/lib/gui/core/ClientConnection.cpp +++ b/src/lib/gui/core/ClientConnection.cpp @@ -75,6 +75,7 @@ void ClientConnection::showMessage(const QString &logLine) if (error == NoError) return; + Q_EMIT requestShowError(error, address); Q_EMIT messageShowing(); m_deps->showError(m_pParent, error, address); } diff --git a/src/lib/gui/core/ClientConnection.h b/src/lib/gui/core/ClientConnection.h index 84c80dd3c..6afa3d7c7 100644 --- a/src/lib/gui/core/ClientConnection.h +++ b/src/lib/gui/core/ClientConnection.h @@ -42,6 +42,13 @@ public: } Q_SIGNALS: + /** + * @brief requestShowError, This signal is emitted when the client + * connection would like the owning process to report an error message + * @param error the type of error being reported + * @param address of the host + */ + void requestShowError(deskflow::gui::messages::ClientError error, const QString &address); void messageShowing(); private: