diff options
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()) { |