mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #103: Bookmark sidebar greyed out if a bookmark is not already present
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user