summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-08 16:14:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-08 16:14:26 -0500
commit4f60eb94d17ce7d0ce51df30c80812c6ce763545 (patch)
treee9d7a3826995bc592e3d50fd24498c105daece1e
parentd45f99e1075989159efda2a442baa23b657d92ec (diff)
downloadtdelibs-4f60eb94d17ce7d0ce51df30c80812c6ce763545.tar.gz
tdelibs-4f60eb94d17ce7d0ce51df30c80812c6ce763545.zip
Generate a default UUID when a connection is created
-rw-r--r--tdecore/tdenetworkconnections.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp
index 6139bd49f..3891f1ff7 100644
--- a/tdecore/tdenetworkconnections.cpp
+++ b/tdecore/tdenetworkconnections.cpp
@@ -21,6 +21,8 @@
#include "config.h"
+#include <tquuid.h>
+
#include <klocale.h>
#ifdef WITH_NETWORK_MANAGER_BACKEND
@@ -499,6 +501,11 @@ TDENetworkConnection::TDENetworkConnection() {
requireIPV4 = false;
requireIPV6 = false;
mtu = 0;
+
+ // Create a UUID for the new connection
+ // This may be overridden later on if connection information
+ // is loaded into this object from another source
+ UUID = TQUuid::createUuid().toString();
}
TDENetworkConnection::~TDENetworkConnection() {