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 0500547..496638f 100644 --- a/network/network.cpp +++ b/network/network.cpp @@ -304,6 +304,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 a3fd3fb..0c0418b 100644 --- a/network/network.h +++ b/network/network.h @@ -52,6 +52,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); |