Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu_gallien@yahoo.fr>2021-04-06 17:55:59 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2021-04-07 10:40:07 +0300
commitd6752c96b1f357f2f92fe14b2d4f97946b0f69b3 (patch)
tree6da31abd8f769fa3248f168b7938bb7b53690903 /src/gui/accountsettings.cpp
parent77681ff5b508e567c4272efd53d1723f9de32a69 (diff)
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 <matthieu_gallien@yahoo.fr>
Diffstat (limited to 'src/gui/accountsettings.cpp')
-rw-r--r--src/gui/accountsettings.cpp3
1 files changed, 1 insertions, 2 deletions
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();