Fix taskbar configuration issues

Fix Kicker menu button layout in Deep Buttons mode
(part of the original commit)
(cherry picked from commit a0d0b876b6)
v3.5.13-sru
Timothy Pearson 12 years ago committed by Slávek Banko
parent f6b523312f
commit d531f6f841

@ -198,6 +198,8 @@ void MenuTab::menuStyleChanged()
void MenuTab::save() void MenuTab::save()
{ {
bool forceRestart = false;
KSharedConfig::Ptr c = KSharedConfig::openConfig(KickerConfig::the()->configName()); KSharedConfig::Ptr c = KSharedConfig::openConfig(KickerConfig::the()->configName());
c->setGroup("menus"); c->setGroup("menus");
@ -230,15 +232,17 @@ void MenuTab::save()
c->writeEntry("OpenOnHover", m_openOnHover->isChecked()); c->writeEntry("OpenOnHover", m_openOnHover->isChecked());
c->sync(); c->sync();
if (kmenusetting != oldkmenusetting) if (kmenusetting != oldkmenusetting) {
DCOPRef ("kicker", "default").call("restart()"); forceRestart = true;
}
c->setGroup("KMenu"); c->setGroup("KMenu");
bool sidepixmapsetting = kcfg_UseSidePixmap->isChecked(); bool sidepixmapsetting = kcfg_UseSidePixmap->isChecked();
bool oldsidepixmapsetting = c->readBoolEntry("UseSidePixmap", true); bool oldsidepixmapsetting = c->readBoolEntry("UseSidePixmap", true);
if (sidepixmapsetting != oldsidepixmapsetting) if (sidepixmapsetting != oldsidepixmapsetting) {
DCOPRef ("kicker", "default").call("restart()"); forceRestart = true;
}
// Save KMenu settings // Save KMenu settings
c->setGroup("KMenu"); c->setGroup("KMenu");
@ -253,6 +257,10 @@ void MenuTab::save()
config->sync(); config->sync();
if (m_kmenu_button_changed == true) { if (m_kmenu_button_changed == true) {
forceRestart = true;
}
if (forceRestart) {
DCOPRef ("kicker", "default").call("restart()"); DCOPRef ("kicker", "default").call("restart()");
} }
} }

Loading…
Cancel
Save