X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=bookmarksdialog.cpp;fp=bookmarksdialog.cpp;h=99026437e47ae596e05a7ab0ccd41e2e3322e296;hb=e88c16731a80d8383963df09ffdb9ce8449b3921;hp=6e22e93b31c598a739a3bce1e39cb7f931b6cb66;hpb=f43cb8ff468e9d6ea889cf9a7b7f7abf2523208d;p=dorian diff --git a/bookmarksdialog.cpp b/bookmarksdialog.cpp index 6e22e93..9902643 100644 --- a/bookmarksdialog.cpp +++ b/bookmarksdialog.cpp @@ -25,13 +25,14 @@ BookmarksDialog::BookmarksDialog(Book *book_, QWidget *parent): QString label("At "); label += QString::number((int)(100 * book_-> getProgress(bookmark.part, bookmark.pos))) + "%"; + if (!bookmark.note.isEmpty()) { + label += ": " + bookmark.note; + } + label += "\n"; int chapterIndex = book_->chapterFromPart(bookmark.part); if (chapterIndex != -1) { QString chapterId = book_->chapters[chapterIndex]; - label += ", in \"" + book_->content[chapterId].name + "\""; - } - if (!bookmark.note.isEmpty()) { - label += "\n" + bookmark.note; + label += "In \"" + book_->content[chapterId].name + "\""; } data.append(label); }