[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kphotoalbum] Viewer: Initialize the action state to a proper value
From: Jan_Kundrát <jkt () flaska ! net>
Date: 2013-02-04 13:48:17
Message-ID: 20130204134817.3AFDFA6091 () git ! kde ! org
[Download RAW message or body]
Git commit f8e0b4a4ee7d032e69f689316ca77218aee9de5b by Jan Kundrát.
Committed on 04/02/2013 at 14:35.
Pushed by jkt into branch 'master'.
Initialize the action state to a proper value
Without this, you'd have to press Ctrl+I twice in order to get rid of an infobox
if you have it configured to show by default.
M +1 -0 Viewer/VisibleOptionsMenu.cpp
http://commits.kde.org/kphotoalbum/f8e0b4a4ee7d032e69f689316ca77218aee9de5b
diff --git a/Viewer/VisibleOptionsMenu.cpp b/Viewer/VisibleOptionsMenu.cpp
index ce5f6cc..3fe4717 100644
--- a/Viewer/VisibleOptionsMenu.cpp
+++ b/Viewer/VisibleOptionsMenu.cpp
@@ -39,6 +39,7 @@ Viewer::VisibleOptionsMenu::VisibleOptionsMenu(QWidget* parent, KActionCollectio
_showInfoBox = actions->add<KToggleAction>( QString::fromLatin1("viewer-show-infobox") );
_showInfoBox->setText( i18n("Show Info Box") );
_showInfoBox->setShortcut( Qt::CTRL+Qt::Key_I );
+ _showInfoBox->setChecked(Settings::SettingsData::instance()->showInfoBox());
connect( _showInfoBox, SIGNAL( toggled(bool) ), this, SLOT( toggleShowInfoBox( bool ) ) );
addAction( _showInfoBox );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic