mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Application: ifdef lock file issue as it only happens on Qt>5.1
However, the fix breaks Qt4 compile, so it needs to be ifdefed. Not viel hilft viel.
This commit is contained in:
parent
4d3a0ed250
commit
41614ec851
1 changed files with 2 additions and 0 deletions
|
@ -110,12 +110,14 @@ Application::Application(int &argc, char **argv) :
|
||||||
if (isRunning())
|
if (isRunning())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
||||||
// Workaround for QTBUG-44576: Make sure a stale QSettings lock file
|
// Workaround for QTBUG-44576: Make sure a stale QSettings lock file
|
||||||
// is deleted.
|
// is deleted.
|
||||||
{
|
{
|
||||||
QString lockFilePath = ConfigFile().configFile() + QLatin1String(".lock");
|
QString lockFilePath = ConfigFile().configFile() + QLatin1String(".lock");
|
||||||
QLockFile(lockFilePath).removeStaleLockFile();
|
QLockFile(lockFilePath).removeStaleLockFile();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(WITH_CRASHREPORTER)
|
#if defined(WITH_CRASHREPORTER)
|
||||||
if (ConfigFile().crashReporter())
|
if (ConfigFile().crashReporter())
|
||||||
|
|
Loading…
Reference in a new issue