Commit d2708aef authored by Albert Astals Cid's avatar Albert Astals Cid

Do not end up with the sidebar hidden when opening some files and you had it open

For example with http://www.abax.se/content/download/137/862/file/example.pdf
parent 3dfd1723
......@@ -1929,7 +1929,7 @@ void Part::enableTOC(bool enable)
m_sidebar->setItemEnabled(0, enable);
// If present, show the TOC when a document is opened
if ( enable )
if ( enable && m_sidebar->currentIndex() != 0 )
{
m_sidebar->setCurrentIndex( 0, Sidebar::DoNotUncollapseIfCollapsed );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment