From f841450daea6ef759fe4789c5844288badb5b7da Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 14 Oct 2013 16:09:51 +0200 Subject: Do append non empty lines not starting with a hash to ignores. --- src/mirall/folderwatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mirall/folderwatcher.cpp b/src/mirall/folderwatcher.cpp index 60c9ba944..5f61e8356 100644 --- a/src/mirall/folderwatcher.cpp +++ b/src/mirall/folderwatcher.cpp @@ -79,7 +79,7 @@ void FolderWatcher::addIgnoreListFile( const QString& file ) while (!infile.atEnd()) { QString line = QString::fromLocal8Bit( infile.readLine() ).trimmed(); - if( !line.startsWith( QLatin1Char('#') ) && line.isEmpty() ) { + if( !(line.startsWith( QLatin1Char('#') ) || line.isEmpty()) ) { _ignores.append(line); } } -- cgit v1.2.3