[PATCH] wpa_gui-qt4: silence compile warning + wpsTab enable/disable
Kel Modderman
kel
Sun Feb 1 09:51:49 PST 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