aboutsummaryrefslogtreecommitdiff
path: root/paperreplay.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 05:18:53 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 05:18:53 +0200
commit2910de560ead3ff65db26292fc27e427a5cf9b5e (patch)
tree12f6c29b77244528176abeee0934bdc4c560f08d /paperreplay.cc
parent46cb4b079be113996214660020d6ef0c3d1f1e80 (diff)
downloadscribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.tar.gz
scribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.zip
add export feature and desktop file
Diffstat (limited to 'paperreplay.cc')
-rw-r--r--paperreplay.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/paperreplay.cc b/paperreplay.cc
index 5baeac7..f2d5b20 100644
--- a/paperreplay.cc
+++ b/paperreplay.cc
@@ -142,8 +142,10 @@ bool PaperReplay::open(const QString &path, quint64 notebookGuid)
if (!parseSessionInfo(session.d, sessionDir.filePath("session.info"))) {
qWarning() << "Could not parse:" << sessionDir.absoluteFilePath("session.info");
}
- if (!parseSessionPages(session.d, sessionDir.filePath("session.pages"))) {
- qWarning() << "Could not parse:" << sessionDir.absoluteFilePath("session.pages");
+ if (sessionDir.exists("session.pages")) {
+ if (!parseSessionPages(session.d, sessionDir.filePath("session.pages"))) {
+ qWarning() << "Could not parse:" << sessionDir.absoluteFilePath("session.pages");
+ }
}
if (!session.d->file.isEmpty()) {