From 4af8cdc636aa69ada1a588618371b842f9d550b1 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 12 Sep 2021 20:04:14 +0200 Subject: fix bug preventing refresh of notebooks after sync --- notebookmodel.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notebookmodel.cc b/notebookmodel.cc index 5709b8b..dc066de 100644 --- a/notebookmodel.cc +++ b/notebookmodel.cc @@ -472,8 +472,9 @@ void NotebookModel::handleChangedDirectory(const QString &path) qDebug() << "changed" << path; if (path == _dataDir.absolutePath()) { refresh(); - } else if (path.endsWith(".pen")) { + } else if (path.endsWith("." PEN_EXTENSION, Qt::CaseInsensitive) + || path.endsWith("." ARCHIVE_EXTENSION, Qt::CaseInsensitive)) { QFileInfo finfo(path); - refreshPen(finfo.baseName()); + refreshPen(finfo.fileName()); } } -- cgit v1.2.3