From 55b5c88cf93d06629ba70eb7cddeb50a365b170a Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 12 Oct 2020 02:27:14 +0200 Subject: minor UI refactor; allow reading ".archive" directories Archives cannot be created from the UI yet. Just copy a .pen directory to an .archive directory for now. --- smartpensyncer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smartpensyncer.cc') diff --git a/smartpensyncer.cc b/smartpensyncer.cc index 8047f4e..acc32ac 100644 --- a/smartpensyncer.cc +++ b/smartpensyncer.cc @@ -262,7 +262,7 @@ bool SmartpenSyncer::syncPen() bool SmartpenSyncer::syncNotebook(Smartpen::PenTime lastSync, const Smartpen::ChangeReport &change) { - QDir notebookDir(_penDataDir.filePath(change.title + ".afd")); + QDir notebookDir(_penDataDir.filePath(change.title + "." AFD_NOTEBOOK_EXTENSION)); if (!notebookDir.exists()) { if (!notebookDir.mkpath(".")) { qWarning() << "Cannot create notebook data directory:" << notebookDir.absolutePath(); -- cgit v1.2.3