diff options
author | Javier <dev.git@javispedro.com> | 2015-06-14 05:18:53 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-14 05:18:53 +0200 |
commit | 2910de560ead3ff65db26292fc27e427a5cf9b5e (patch) | |
tree | 12f6c29b77244528176abeee0934bdc4c560f08d /paperreplay.cc | |
parent | 46cb4b079be113996214660020d6ef0c3d1f1e80 (diff) | |
download | scribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.tar.gz scribiu-2910de560ead3ff65db26292fc27e427a5cf9b5e.zip |
add export feature and desktop file
Diffstat (limited to 'paperreplay.cc')
-rw-r--r-- | paperreplay.cc | 6 |
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()) { |