Do append non empty lines not starting with a hash to ignores.

This commit is contained in:
Klaas Freitag 2013-10-14 16:09:51 +02:00
parent 1fccb23442
commit f841450dae

View file

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