File fix_empty_eap_identity.patch of Package NetworkManager-kde

Index: knetworkmanager/src/knetworkmanager-connection_setting_8021x.cpp
===================================================================
--- knetworkmanager/src/knetworkmanager-connection_setting_8021x.cpp	(Revision 882857)
+++ knetworkmanager/src/knetworkmanager-connection_setting_8021x.cpp	(Revision 882858)
@@ -163,10 +163,10 @@
 		map.insert(NM_SETTING_802_1X_PHASE2_AUTH, QDBusData::fromString(_eapMap[(EAP)_eapPhase2]));
 	}
 
-	if (!_identity.isNull())
+	if (!_identity.isEmpty())
 		map.insert(NM_SETTING_802_1X_IDENTITY, QDBusData::fromString(_identity));
 
-	if (!_anonIdentity.isNull())
+	if (!_anonIdentity.isEmpty())
 		map.insert(NM_SETTING_802_1X_ANONYMOUS_IDENTITY, QDBusData::fromString(_anonIdentity));
 
 // FIXME
@@ -175,7 +175,7 @@
 		map.insert("ca-cert", QDBusData::fromString(_caCert));
 */
 
-	if (!_caPath.isNull())
+	if (!_caPath.isEmpty())
 		map.insert(NM_SETTING_802_1X_CA_PATH, QDBusData::fromString(_caPath));
 
 //FIXME
openSUSE Build Service is sponsored by