Replace QDBusConnection::localMachineId with QSysInfo::machineUniqueId()

QSysInfo::machineUniqueId() was added in Qt 5.11 and is using DBus independent unique machine ids everywhere except on Linux. This prevents running into an assert in case DBus is not properly installed at a very early stage of the application without any chance to give the user a warning and handle it gracefully.
This commit is contained in:
Roland Rossgotterer
2018-12-20 15:24:49 +01:00
committed by Mat Sutcliffe
parent f9a215a336
commit 94c2859e18
3 changed files with 64 additions and 3 deletions

View File

@@ -69,6 +69,8 @@ SOURCES += *.cpp \
win32 {
LIBS *= -lShell32 -lDbghelp -lversion
# Remove the one below once the Reg functions are removed again from CIdentifier
LIBS *= -lAdvapi32
}
win32-g++ {
LIBS *= -lpsapi