diff options
| -rw-r--r-- | src/core/kconfigini.cpp | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index 71a8a653..df834f57 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -609,14 +609,7 @@ bool KConfigIniBackend::lock()          lockFile = new QLockFile(filePath() + QLatin1String(".lock"));      } -    // This is a workaround for current QLockFilePrivate::tryLock_sys -    // which might crash calling qAppName() if sync() is called after -    // the QCoreApplication instance is gone. It might be the case with -    // KSharedConfig instances cleanup. -    if (!lockFile->tryLock(lockFile->staleLockTime())) { -        lockFile->removeStaleLockFile(); -        lockFile->lock(); -    } +    lockFile->lock();      return lockFile->isLocked();  } | 
