Skip to content

Commit

Permalink
Fix file monitor notifications spam (nickbnf#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Apr 22, 2021
1 parent 7440d6a commit 1874778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filewatch/src/filewatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void FileWatcher::fileChangedOnDisk( const QString& fileName )
}

if ( !notificationTimer_->isActive() ) {
QTimer::singleShot( 500, this, &FileWatcher::notifyFileChangedOnDisk );
notificationTimer_->singleShot( 500, this, &FileWatcher::notifyFileChangedOnDisk );
}
}

Expand Down

0 comments on commit 1874778

Please sign in to comment.