aboutsummaryrefslogtreecommitdiff
path: root/smartpensyncer.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2020-10-12 02:27:14 +0200
committerJavier <dev.git@javispedro.com>2020-10-12 02:27:14 +0200
commit55b5c88cf93d06629ba70eb7cddeb50a365b170a (patch)
tree49073a56b531898d27822812ba859bd26892f634 /smartpensyncer.cc
parenta22f3f54d9426c29220815f95dec574a11c43f69 (diff)
downloadscribiu-55b5c88cf93d06629ba70eb7cddeb50a365b170a.tar.gz
scribiu-55b5c88cf93d06629ba70eb7cddeb50a365b170a.zip
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.
Diffstat (limited to 'smartpensyncer.cc')
-rw-r--r--smartpensyncer.cc2
1 files changed, 1 insertions, 1 deletions
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();