1 Oct 2008 03:42
[PATCH 1/2] wpa_gui-qt4: clean up closeEvent handler
Kel Modderman <kel <at> otaku42.de>
2008-10-01 01:42:43 GMT
2008-10-01 01:42:43 GMT
When the system tray icon is created, qApp's setQuitOnLastWindowClosed
property is set to false, therefore do _not_ ignore widget close events, or
else wpa_gui will refuse to exit when the window manager is logging out.
While at it, remove WpaGui::fileExit() and connect fileExitAction to close().
Signed-off-by: Kel Modderman <kel <at> otaku42.de>
---
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
<at> <at> -37,7 +37,7 <at> <at>
SLOT(eventHistory()));
connect(fileSaveConfigAction, SIGNAL(triggered()), this,
SLOT(saveConfig()));
- connect(fileExitAction, SIGNAL(triggered()), this, SLOT(fileExit()));
+ connect(fileExitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(networkAddAction, SIGNAL(triggered()), this,
SLOT(addNetwork()));
connect(networkEditAction, SIGNAL(triggered()), this,
<at> <at> -1214,11 +1222,6 <at> <at>
showTrayMessage(QSystemTrayIcon::Information, 10, msg);
}
-void WpaGui::fileExit()
-{
- qApp->quit();
-}
-
void WpaGui::closeEvent(QCloseEvent *event)
(Continue reading)
RSS Feed