diff options
| author | Christoph Berg <myon@debian.org> | 2021-03-27 10:24:15 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-03-27 10:24:15 +0100 |
| commit | 9655b6f589e8e5fa83d21827884d9488ebff63f4 (patch) | |
| tree | 9ae726f568c60d008f44f472cdff4983cf75a995 /main.cpp | |
| parent | 624f3a92bc09c65c75dda356f6a9af22feea0b5c (diff) | |
| parent | 5c88480ddc5c5dab1f3444a8b8de9303fd6140da (diff) | |
Update upstream source from tag 'upstream/2.4.0_rc4+repack'
Update to upstream version '2.4.0~rc4+repack'
with Debian dir 74c7d76ab37efed76838cc21b978156acf14f428
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -225,8 +225,7 @@ int main(int argc, char *argv[]) // disallow multiple instances with same instance key QLockFile instance_lock {temp_dir.absoluteFilePath (a.applicationName () + ".lock")}; instance_lock.setStaleLockTime (0); - bool lock_ok {false}; - while (!(lock_ok = instance_lock.tryLock ())) + while (!instance_lock.tryLock ()) { if (QLockFile::LockFailedError == instance_lock.error ()) { @@ -249,6 +248,10 @@ int main(int argc, char *argv[]) throw std::runtime_error {"Multiple instances must have unique rig names"}; } } + else + { + throw std::runtime_error {"Failed to access lock file"}; + } } // load UI translations |
