mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-28 21:09:52 +00:00
more watcher tests
This commit is contained in:
parent
db923499f1
commit
24826364d4
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue