From b1b9a3df473b3a27629be91cab0058b0e140d06d Mon Sep 17 00:00:00 2001 From: kh1 Date: Tue, 11 Nov 2014 14:49:17 +0100 Subject: Rewrite the isRunning implementation and remove private class. Use a more descriptive enum name. On Windows keep the lower case version of the process name instead of calling toLower() several times. Print a warning if we cannot obtain or release the lock. Change-Id: Iaaefae0359cd214290f62ce78677cb343da8823c Reviewed-by: Kai Koehne Reviewed-by: Niels Weber --- src/sdk/installerbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sdk/installerbase.cpp') diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp index f262152ae..9d3cd8885 100644 --- a/src/sdk/installerbase.cpp +++ b/src/sdk/installerbase.cpp @@ -72,8 +72,8 @@ InstallerBase::~InstallerBase() int InstallerBase::run() { KDRunOnceChecker runCheck(QLatin1String("lockmyApp1234865.lock")); - if (runCheck.isRunning(KDRunOnceChecker::ProcessList) - || runCheck.isRunning(KDRunOnceChecker::Lockfile)) { + if (runCheck.isRunning(KDRunOnceChecker::ConditionFlag::ProcessList) + || runCheck.isRunning(KDRunOnceChecker::ConditionFlag::Lockfile)) { QInstaller::MessageBoxHandler::information(0, QLatin1String("AlreadyRunning"), QString::fromLatin1("Waiting for %1").arg(qAppName()), QString::fromLatin1("Another %1 instance is already running. Wait " -- cgit v1.2.3