mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-30 08:20:27 +03:00
Do append non empty lines not starting with a hash to ignores.
This commit is contained in:
parent
1fccb23442
commit
f841450dae
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue