From 247b7d55be4c9caea3cbc05f6f543280f207d895 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 14 Jun 2015 17:39:26 +0200 Subject: allow changing data path, improve icon --- smartpensyncer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smartpensyncer.cc') diff --git a/smartpensyncer.cc b/smartpensyncer.cc index 654b0eb..100b64b 100644 --- a/smartpensyncer.cc +++ b/smartpensyncer.cc @@ -2,9 +2,9 @@ #include #include #include -#include #include #include "paperreplay.h" +#include "notebookmodel.h" #include "smartpensyncer.h" #define BUFFER_SIZE 16 * 1024 @@ -89,7 +89,7 @@ void SmartpenSyncer::run() _penSerial = penInfo["penserial"].toString(); - _penDataDir.setPath(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/" + _penName + ".pen"); + _penDataDir.setPath(NotebookModel::userDataDirectory() + "/" + _penName + ".pen"); if (!_penDataDir.exists()) { if (!_penDataDir.mkpath(".")) { qWarning() << "Cannot create pen data directory:" << _penDataDir.absolutePath(); -- cgit v1.2.3