[PATCH] wpa_gui-qt4: silence compile warning + wpsTab enable/disable

Kel Modderman kel at otaku42.de
Sun Feb 1 12:51:49 EST 2009


On Monday 12 January 2009 05:45:21 Jouni Malinen wrote:
> On Sun, Jan 11, 2009 at 10:45:39PM +1000, Kel Modderman wrote:
> > Fix compile warning by renaming gridLayout to wpsGridLayout in wpagui.ui, it
> > seems to be used internally.
> 
> Thanks, applied.
> 
> > Also disable WPS tab if the running supplicant doesn't support that, just as
> > the WPS action menu is.
> 
> This does not seem to change anything in my build.. Any idea whether
> this requires something special from Qt to work?
> 

Is this better?

Thanks, Kel.
---
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
@@ -417,7 +417,8 @@ int WpaGui::openCtrlConnection(const cha
 		QString res(buf);
 		QStringList types = res.split(QChar(' '));
 		actionWPS->setEnabled(types.contains("WSC"));
-		wpsTab->setEnabled(types.contains("WSC"));
+		wpaguiTab->setTabEnabled(wpaguiTab->indexOf(wpsTab),
+					 types.contains("WSC"));
 	}
 
 	return 0;
---


More information about the HostAP mailing list