aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--notebookmodel.cc5
1 files 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());
}
}