more watcher tests

This commit is contained in:
Patrizio Bekerle 2016-06-14 17:41:17 +02:00
parent db923499f1
commit 24826364d4

View file

@ -65,6 +65,18 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
_noteDirectoryWatcher = new QFileSystemWatcher(this);
// QObject::connect(
// this->_noteDirectoryWatcher,
// SIGNAL(directoryChanged(QString)),
// this,
// SLOT(notesDirectoryWasModified(QString)));
// QObject::connect(
// this->_noteDirectoryWatcher,
// SIGNAL(fileChanged(QString)),
// this,
// SLOT(notesWereModified(QString)));
_noteViewIsRegenerated = false;
_searchLineEditFromCompleter = false;
this->setWindowTitle(
@ -1180,6 +1192,9 @@ void MainWindow::loadNoteDirectoryList() {
QDir dir(this->notesPath);
const QSignalBlocker blocker3(_noteDirectoryWatcher);
Q_UNUSED(blocker3);
_noteDirectoryWatcher = new QFileSystemWatcher(this);
// clear all paths from the directory watcher