aboutsummaryrefslogtreecommitdiff
path: root/smartpensyncer.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 17:39:26 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 17:39:26 +0200
commit247b7d55be4c9caea3cbc05f6f543280f207d895 (patch)
tree7fd437e728726117cb8914dd1658adffaabcf3ac /smartpensyncer.cc
parente3c4aa5dffecc8f62958c44035b2e58de0228eb4 (diff)
downloadscribiu-247b7d55be4c9caea3cbc05f6f543280f207d895.tar.gz
scribiu-247b7d55be4c9caea3cbc05f6f543280f207d895.zip
allow changing data path, improve icon
Diffstat (limited to 'smartpensyncer.cc')
-rw-r--r--smartpensyncer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/smartpensyncer.cc b/smartpensyncer.cc
index 654b0eb..100b64b 100644
--- a/smartpensyncer.cc
+++ b/smartpensyncer.cc
@@ -2,9 +2,9 @@
#include <QtCore/QScopedArrayPointer>
#include <QtCore/QThread>
#include <QtCore/QDebug>
-#include <QtGui/QDesktopServices>
#include <quazip/quazipfile.h>
#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();