summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-17 14:34:51 -0600
committerSlávek Banko <slavek.banko@axis.cz>2013-05-19 16:58:18 +0200
commitd531f6f8413e13d29991463f853b3615ac3bcea9 (patch)
tree6a94a2a2526e8fbc8cabc903ff8e475d79b8f3e0 /kcontrol
parentf6b523312fd9f2457036a5df404cfb70f64297a4 (diff)
downloadtdebase-d531f6f8413e13d29991463f853b3615ac3bcea9.tar.gz
tdebase-d531f6f8413e13d29991463f853b3615ac3bcea9.zip
Fix taskbar configuration issues
Fix Kicker menu button layout in Deep Buttons mode (part of the original commit) (cherry picked from commit a0d0b876b6447c5be26a50a0b295e91cd95a8ceb)
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/kicker/menutab_impl.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/kcontrol/kicker/menutab_impl.cpp b/kcontrol/kicker/menutab_impl.cpp
index 35a89acfc..3b5edc11f 100644
--- a/kcontrol/kicker/menutab_impl.cpp
+++ b/kcontrol/kicker/menutab_impl.cpp
@@ -198,6 +198,8 @@ void MenuTab::menuStyleChanged()
void MenuTab::save()
{
+ bool forceRestart = false;
+
KSharedConfig::Ptr c = KSharedConfig::openConfig(KickerConfig::the()->configName());
c->setGroup("menus");
@@ -230,15 +232,17 @@ void MenuTab::save()
c->writeEntry("OpenOnHover", m_openOnHover->isChecked());
c->sync();
- if (kmenusetting != oldkmenusetting)
- DCOPRef ("kicker", "default").call("restart()");
+ if (kmenusetting != oldkmenusetting) {
+ forceRestart = true;
+ }
c->setGroup("KMenu");
bool sidepixmapsetting = kcfg_UseSidePixmap->isChecked();
bool oldsidepixmapsetting = c->readBoolEntry("UseSidePixmap", true);
- if (sidepixmapsetting != oldsidepixmapsetting)
- DCOPRef ("kicker", "default").call("restart()");
+ if (sidepixmapsetting != oldsidepixmapsetting) {
+ forceRestart = true;
+ }
// Save KMenu settings
c->setGroup("KMenu");
@@ -253,6 +257,10 @@ void MenuTab::save()
config->sync();
if (m_kmenu_button_changed == true) {
+ forceRestart = true;
+ }
+
+ if (forceRestart) {
DCOPRef ("kicker", "default").call("restart()");
}
}