diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index d8fba199..799d5f86 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -1197,38 +1197,40 @@ void MainWindow::updateFavourites() if (journal) { if (journal->size() > 0) { Session *sess = journal->firstSession(MT_JOURNAL); - QString tmp; - bool filtered = !bookmarkFilter.isEmpty(); - bool found = !filtered; + if (sess) { + QString tmp; + bool filtered = !bookmarkFilter.isEmpty(); + bool found = !filtered; - if (sess->settings.contains(Bookmark_Start)) { - //QVariantList start=sess->settings[Bookmark_Start].toList(); - //QVariantList end=sess->settings[Bookmark_End].toList(); - QStringList notes = sess->settings[Bookmark_Notes].toStringList(); + if (sess->settings.contains(Bookmark_Start)) { + //QVariantList start=sess->settings[Bookmark_Start].toList(); + //QVariantList end=sess->settings[Bookmark_End].toList(); + QStringList notes = sess->settings[Bookmark_Notes].toStringList(); - if (notes.size() > 0) { - tmp += QString("