summaryrefslogtreecommitdiffstats
path: root/tdecore/tdenetworkconnections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdenetworkconnections.cpp')
-rw-r--r--tdecore/tdenetworkconnections.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp
index 14117d990..5f1f85414 100644
--- a/tdecore/tdenetworkconnections.cpp
+++ b/tdecore/tdenetworkconnections.cpp
@@ -208,7 +208,16 @@ void TDEMACAddress::setAddress(TDENetworkByteList address) {
}
bool TDEMACAddress::isValid() {
- return m_isValid;
+ if (!m_isValid) {
+ return false;
+ }
+
+ if (m_macAddress.count() > 0) {
+ return true;
+ }
+ else {
+ return false;
+ }
}
void TDEMACAddress::fromString(TQString address) {