diff options
author | Javier <dev.git@javispedro.com> | 2020-10-12 02:27:14 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2020-10-12 02:27:14 +0200 |
commit | 55b5c88cf93d06629ba70eb7cddeb50a365b170a (patch) | |
tree | 49073a56b531898d27822812ba859bd26892f634 /smartpensyncer.cc | |
parent | a22f3f54d9426c29220815f95dec574a11c43f69 (diff) | |
download | scribiu-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.cc | 2 |
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(); |