aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-09-06 17:59:57 -0400
committerKen Moore <ken@ixsystems.com>2018-09-06 17:59:57 -0400
commitf1fce23e23d0a61ce588c5c089792a1e71dc0500 (patch)
treedd8fc110244fc6396f3a930ea4d0f7e022956f3f /src-qt5/src-cpp
parentCheckpoint commit for some uncommitted changed to lumina-desktop-unified (diff)
downloadlumina-f1fce23e23d0a61ce588c5c089792a1e71dc0500.tar.gz
lumina-f1fce23e23d0a61ce588c5c089792a1e71dc0500.tar.bz2
lumina-f1fce23e23d0a61ce588c5c089792a1e71dc0500.zip
Fix up the launching of the desktop session
1. Clear out the lockfiles for a session before launching it 2. Provide some mechanisms for returning lockfile paths without creating a new single-instance session. 3. A couple other random commits I still had staged on my laptop (settings menu tweak)
Diffstat (limited to 'src-qt5/src-cpp')
-rw-r--r--src-qt5/src-cpp/framework-OSInterface_private.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface_private.cpp b/src-qt5/src-cpp/framework-OSInterface_private.cpp
index b0a22b1d..a15626e9 100644
--- a/src-qt5/src-cpp/framework-OSInterface_private.cpp
+++ b/src-qt5/src-cpp/framework-OSInterface_private.cpp
@@ -305,6 +305,7 @@ void OSInterface::syncNetworkInfo(OSInterface *os, QHash<QString, QVariant> *has
bool ok = false;
for(int j=0; j<addressList.length() && !ok; j++){
if( addressList[j].ip().isLoopback() ){ continue; }
+ else if(addressList[i].ip().isEqual(QHostAddress(QHostAddress::LocalHost)) || addressList[i].ip().isEqual(QHostAddress::LocalHostIPv6) ){ continue; }
addressList[j].ip().toIPv4Address(&ok);
}
if(ok){ active = netconfigL[i]; break; } //found a good one with a valid IPv4
bgstack15