summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaƂ Szalecki <rafal_szalecki@poczta.onet.pl>2017-01-20 23:16:30 (GMT)
committerAlbert Astals Cid <aacid@kde.org>2017-01-20 23:16:30 (GMT)
commita43049f6880c2da7d71a6eb9bd7acf6dd95e7b20 (patch)
tree3a8ce1beaad45a3bc7a5b53eff8f31a3176ccc01
parente019c9f61edf20c433ac4bf2e3546ce9b5c1104a (diff)
Fixed initial graying out options in Cube Effect settings
Typically after deselecting "Show caps" option, the associated options "Cap color" and "Display image on caps" are grayed out (triggered by signal). The bug was when Desktop Cube settings were closed and opened again then the options were not grayed out. Succesfully compiled and tested by deselecting "Show caps" option in Desktop Cube settings, closing the settings window and opening it once again. The options "Cap color" and "Display image on caps" were then grayed out. REVIEW: 129194
-rw-r--r--effects/cube/cube_config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/effects/cube/cube_config.cpp b/effects/cube/cube_config.cpp
index 9bae192..0939b67 100644
--- a/effects/cube/cube_config.cpp
+++ b/effects/cube/cube_config.cpp
@@ -82,6 +82,7 @@ CubeEffectConfig::CubeEffectConfig(QWidget* parent, const QVariantList& args) :
m_ui->editor->addCollection(m_actionCollection);
+ capsSelectionChanged();
connect(m_ui->kcfg_Caps, SIGNAL(stateChanged(int)), this, SLOT(capsSelectionChanged()));
m_ui->kcfg_Wallpaper->setFilter(QStringLiteral("*.png *.jpeg *.jpg "));
addConfig(CubeConfig::self(), m_ui);