Merge pull request #3068 from nextcloud/bug/fixAssertEditIgnoredFiles

use QFileInfo to check if path is absolute to avoid assert on windows
This commit is contained in:
Matthieu Gallien 2021-04-07 10:06:29 +02:00 committed by GitHub
commit 4a7145f1f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();