From: Matthieu Gallien Date: Tue, 6 Apr 2021 14:55:59 +0000 (+0200) Subject: use QFileInfo to check if path is absolute to avoid assert on windows X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~276^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d6752c96b1f357f2f92fe14b2d4f97946b0f69b3;p=nextcloud-desktop.git use QFileInfo to check if path is absolute to avoid assert on windows on windos absolute path does not have to start with / . Remove failing assert when editing ignored files list. Signed-off-by: Matthieu Gallien --- diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index d3a2b955f..a881606f7 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -385,8 +385,7 @@ void AccountSettings::slotEditCurrentLocalIgnoredFiles() void AccountSettings::openIgnoredFilesDialog(const QString & absFolderPath) { - Q_ASSERT(absFolderPath.startsWith('/')); - Q_ASSERT(absFolderPath.endsWith('/')); + Q_ASSERT(QFileInfo(absFolderPath).isAbsolute()); const QString ignoreFile = absFolderPath + ".sync-exclude.lst"; auto layout = new QVBoxLayout();