[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [okular] /: Show table of contents in sidebar on startup (if present)
From: Fabio D'Urso <fabiodurso () hotmail ! it>
Date: 2013-09-30 21:23:13
Message-ID: E1VQkvx-000488-1N () scm ! kde ! org
[Download RAW message or body]
Git commit 20716155ecb1e8433476c0e7ff3610613003c29f by Fabio D'Urso, on beh=
alf of Stefan Radermacher.
Committed on 27/09/2013 at 13:31.
Pushed by fabiod into branch 'master'.
Show table of contents in sidebar on startup (if present)
FEATURE: 321169
FIXED-IN: 4.12.0
REVIEW: 111036
M +4 -0 part.cpp
http://commits.kde.org/okular/20716155ecb1e8433476c0e7ff3610613003c29f
diff --git a/part.cpp b/part.cpp
index 71c3d0f..301d23e 100644
--- a/part.cpp
+++ b/part.cpp
@@ -1775,6 +1775,10 @@ void Part::updateBookmarksActions()
void Part::enableTOC(bool enable)
{
m_sidebar->setItemEnabled(0, enable);
+ if ( enable )
+ {
+ m_sidebar->setCurrentIndex( 0 );
+ }
}
=
void Part::slotRebuildBookmarkMenu()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic