mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
remove custom parsing of bookmark url
This commit is contained in:
parent
631a24f03f
commit
9b10c87bd4
|
@ -128,7 +128,8 @@ QList<int> DocumentItem::bookmarkedPages() const
|
|||
QList<int> list;
|
||||
QSet<int> pages;
|
||||
foreach (const KBookmark &bookmark, m_document->bookmarkManager()->bookmarks()) {
|
||||
pages << bookmark.url().fragment().split(";").first().toInt();
|
||||
Okular::DocumentViewport viewport(bookmark.url().htmlRef());
|
||||
pages << viewport.pageNumber;
|
||||
}
|
||||
list = pages.toList();
|
||||
qSort(list);
|
||||
|
|
Loading…
Reference in a new issue