From: Camila Date: Tue, 27 Dec 2022 17:24:41 +0000 (+0100) Subject: Update code style. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~23^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf258542cd3cc4da4479e998e72661ada1582f05;p=nextcloud-desktop.git Update code style. Signed-off-by: Camila --- diff --git a/src/gui/application.cpp b/src/gui/application.cpp index cdf636013..2aa726ffa 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -248,12 +248,22 @@ Application::Application(int &argc, char **argv) QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED QString oldDir = QStandardPaths::writableLocation(QStandardPaths::DataLocation); - if (oldDir.endsWith('/')) oldDir.chop(1); // macOS 10.11.x does not like trailing slash for rename/move. + + // macOS 10.11.x does not like trailing slash for rename/move. + if (oldDir.endsWith('/')) { + oldDir.chop(1); + } + QT_WARNING_POP setApplicationName(_theme->appName()); if (QFileInfo(oldDir).isDir()) { auto confDir = ConfigFile().configPath(); - if (confDir.endsWith('/')) confDir.chop(1); // macOS 10.11.x does not like trailing slash for rename/move. + + // macOS 10.11.x does not like trailing slash for rename/move. + if (confDir.endsWith('/')) { + confDir.chop(1); + } + qCInfo(lcApplication) << "Migrating old config from" << oldDir << "to" << confDir; if (!QFile::rename(oldDir, confDir)) {