diff options
author | Javier <dev.git@javispedro.com> | 2015-06-14 17:39:26 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-14 17:39:26 +0200 |
commit | 247b7d55be4c9caea3cbc05f6f543280f207d895 (patch) | |
tree | 7fd437e728726117cb8914dd1658adffaabcf3ac /smartpensyncer.cc | |
parent | e3c4aa5dffecc8f62958c44035b2e58de0228eb4 (diff) | |
download | scribiu-247b7d55be4c9caea3cbc05f6f543280f207d895.tar.gz scribiu-247b7d55be4c9caea3cbc05f6f543280f207d895.zip |
allow changing data path, improve icon
Diffstat (limited to 'smartpensyncer.cc')
-rw-r--r-- | smartpensyncer.cc | 4 |
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(); |