mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #74: Highlighting text opens the sidebar every time
This commit is contained in:
@ -553,6 +553,7 @@ public:
|
||||
|
||||
bool hasReset() const { return m_flags.testFlag(Reset); }
|
||||
bool hasPageContentsChanged() const { return m_flags.testFlag(PageContents); }
|
||||
bool hasPreserveUndoRedo() const { return m_flags.testFlag(PreserveUndoRedo); }
|
||||
bool hasFlag(ModificationFlag flag) const { return m_flags.testFlag(flag); }
|
||||
|
||||
operator PDFDocument*() const { return m_document; }
|
||||
|
@ -464,7 +464,7 @@ void PDFViewerMainWindow::setDocument(const pdf::PDFModifiedDocument& document)
|
||||
{
|
||||
m_sidebarDockWidget->hide();
|
||||
}
|
||||
else
|
||||
else if (document.hasReset() && !document.hasPreserveUndoRedo())
|
||||
{
|
||||
m_sidebarDockWidget->show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user