Issue #103: Bookmark sidebar greyed out if a bookmark is not already present

This commit is contained in:
Jakub Melka
2023-11-08 19:24:04 +01:00
parent 2584227373
commit 6fe978f031
5 changed files with 31 additions and 3 deletions

View File

@@ -260,7 +260,7 @@ bool PDFSidebarWidget::isEmpty(Page page) const
return true;
case Bookmarks:
return m_outlineTreeModel->isEmpty();
return m_outlineTreeModel->isEmpty() && (!m_document || !m_outlineTreeModel->isEditable());
case Thumbnails:
return m_thumbnailsModel->isEmpty();