From 4f60eb94d17ce7d0ce51df30c80812c6ce763545 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 8 Sep 2012 16:14:26 -0500 Subject: Generate a default UUID when a connection is created --- tdecore/tdenetworkconnections.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tdecore') 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 + #include #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() { -- cgit v1.2.1