]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_gui-qt4: do not show WPS AP available event tray messages
authorKel Modderman <kel@otaku42.de>
Sat, 13 Feb 2010 12:03:18 +0000 (14:03 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Feb 2010 12:03:18 +0000 (14:03 +0200)
Do not show WPS event tray messages as they can happen too frequently.

Signed-off-by: Kel Modderman <kel@otaku42.de>
wpa_supplicant/wpa_gui-qt4/wpagui.cpp

index 990268c6b36f81cb31529e84db59ca7b6e358d0f..d2a2b5a1cddc1a6c5517eaeac045ed6e0c0b1a64 100644 (file)
@@ -870,9 +870,6 @@ void WpaGui::processMsg(char *msg)
                QTimer::singleShot(5 * 1000, this, SLOT(showTrayStatus()));
                stopWpsRun(true);
        } else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PBC)) {
-               showTrayMessage(QSystemTrayIcon::Information, 3,
-                               "Wi-Fi Protected Setup (WPS) AP\n"
-                               "in active PBC mode found.");
                wpsStatusText->setText("WPS AP in active PBC mode found");
                if (textStatus->text() == "INACTIVE" ||
                    textStatus->text() == "DISCONNECTED")
@@ -880,23 +877,14 @@ void WpaGui::processMsg(char *msg)
                wpsInstructions->setText("Press the PBC button on the screen "
                                         "to start registration");
        } else if (str_match(pos, WPS_EVENT_AP_AVAILABLE_PIN)) {
-               showTrayMessage(QSystemTrayIcon::Information, 3,
-                               "Wi-Fi Protected Setup (WPS) AP\n"
-                               " in active PIN mode found.");
                wpsStatusText->setText("WPS AP with recently selected "
                                       "registrar");
                if (textStatus->text() == "INACTIVE" ||
                    textStatus->text() == "DISCONNECTED")
                        wpaguiTab->setCurrentWidget(wpsTab);
        } else if (str_match(pos, WPS_EVENT_AP_AVAILABLE)) {
-               showTrayMessage(QSystemTrayIcon::Information, 3,
-                               "Wi-Fi Protected Setup (WPS)\n"
-                               "AP detected.");
                wpsStatusText->setText("WPS AP detected");
        } else if (str_match(pos, WPS_EVENT_OVERLAP)) {
-               showTrayMessage(QSystemTrayIcon::Information, 3,
-                               "Wi-Fi Protected Setup (WPS)\n"
-                               "PBC mode overlap detected.");
                wpsStatusText->setText("PBC mode overlap detected");
                wpsInstructions->setText("More than one AP is currently in "
                                         "active WPS PBC mode. Wait couple of "