summaryrefslogtreecommitdiffstats
path: root/tdenetworkmanager
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-18 00:46:16 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-18 00:46:16 -0500
commitf62332d1fbb374ea0f528c042fadb105d3e45d09 (patch)
treede2fdca1936f668c580a2df992a9e7efe515ba4f /tdenetworkmanager
parent0dc62c7ad7ee849ca16425bf1a02ea27178d8a84 (diff)
downloadtdenetworkmanager-f62332d1fbb374ea0f528c042fadb105d3e45d09.tar.gz
tdenetworkmanager-f62332d1fbb374ea0f528c042fadb105d3e45d09.zip
Clean up minor warning
Diffstat (limited to 'tdenetworkmanager')
-rw-r--r--tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_wireless_security_widget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_wireless_security_widget.cpp b/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_wireless_security_widget.cpp
index ec71417..17d1dd8 100644
--- a/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_wireless_security_widget.cpp
+++ b/tdenetworkmanager/src/configwidgets/tdenetman-connection_setting_wireless_security_widget.cpp
@@ -601,7 +601,9 @@ WirelessSecurityEAPImpl::WirelessSecurityEAPImpl(TDEWiFiConnection* security_set
// preselect the correct method
TQBiDirectionalMap<int, TDENetworkIEEE8021xType::TDENetworkIEEE8021xType>::Iterator it = _eapIndexMap.findData(_security_setting->eapConfig.type);
- cboMethod->setCurrentItem(it.key());
+ if (it != _eapIndexMap.end()) {
+ cboMethod->setCurrentItem(it.key());
+ }
// update phase2 combobox
_phase2_widget->setAllowedPhase2Methods(_security_setting->eapConfig.allowedPhase2EAPMethods);