From kde-commits Mon Sep 30 21:23:13 2013 From: Fabio D'Urso Date: Mon, 30 Sep 2013 21:23:13 +0000 To: kde-commits Subject: [okular] /: Added comment about the previous patch Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=138057620215362 Git commit 358fc7568d298e1f5bf3141d49650018eee37eca by Fabio D'Urso. Committed on 30/09/2013 at 21:17. Pushed by fabiod into branch 'master'. Added comment about the previous patch M +2 -0 part.cpp http://commits.kde.org/okular/358fc7568d298e1f5bf3141d49650018eee37eca diff --git a/part.cpp b/part.cpp index 301d23e..6951947 100644 --- a/part.cpp +++ b/part.cpp @@ -1775,6 +1775,8 @@ void Part::updateBookmarksActions() void Part::enableTOC(bool enable) { m_sidebar->setItemEnabled(0, enable); + + // If present, show the TOC when a document is opened if ( enable ) { m_sidebar->setCurrentIndex( 0 );