diff options
-rw-r--r-- | network/network.cpp | 4 | ||||
-rw-r--r-- | network/network.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/network/network.cpp b/network/network.cpp index db4b2b4..ebfa7a9 100644 --- a/network/network.cpp +++ b/network/network.cpp @@ -286,6 +286,10 @@ void Network::processReply(ResponseMessage *rmsg) addServices(rmsg->replyData().value("values").toArray()); } else if (rmsg->requestVerb() == "technologies") { parseTechnologies(rmsg->replyData().value("values").toArray()); + } else if (rmsg->requestVerb() == "connect_service") { + if (rmsg->replyStatus() == "failed" && rmsg->replyInfo().contains("invalid-key")) { + emit invalidPassphrase(rmsg->requestData()["parameter"].toMap()["service"].toString()); + } } } diff --git a/network/network.h b/network/network.h index 499f612..7d47ace 100644 --- a/network/network.h +++ b/network/network.h @@ -51,6 +51,7 @@ class Network : public QObject signals: void inputRequest(int id); + void invalidPassphrase(QString service); void searchResults(QString name); void statusChanged(bool connected); void wifiConnectedChanged(bool connected); |