Commit 03f4481b authored by Peter Penz's avatar Peter Penz
Browse files

assure that the Dolphin KPart inside Konqueror gets updated when the settings are changed

svn path=/trunk/KDE/kdebase/apps/; revision=792496
parent e8970ac7
......@@ -367,6 +367,11 @@ void DolphinPartBrowserExtension::paste()
m_part->view()->paste();
}
void DolphinPartBrowserExtension::reparseConfiguration()
{
m_part->view()->refresh();
}
////
void DolphinPart::slotEditMimeType()
......
......@@ -171,6 +171,7 @@ public Q_SLOTS:
void cut();
void copy();
void paste();
void reparseConfiguration();
private:
DolphinPart* m_part;
......
......@@ -29,6 +29,8 @@
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDir>
#include <QPushButton>
#include <QVBoxLayout>
......@@ -87,6 +89,7 @@ void DolphinConfigModule::save()
foreach (ViewSettingsPageBase* page, m_pages) {
page->applySettings();
}
reparseConfiguration();
}
void DolphinConfigModule::defaults()
......@@ -94,6 +97,13 @@ void DolphinConfigModule::defaults()
foreach (ViewSettingsPageBase* page, m_pages) {
page->restoreDefaults();
}
reparseConfiguration();
}
void DolphinConfigModule::reparseConfiguration()
{
QDBusMessage message = QDBusMessage::createSignal("/KonqMain", "org.kde.Konqueror.Main", "reparseConfiguration");
QDBusConnection::sessionBus().send(message);
}
#include "kcmdolphin.moc"
......@@ -38,6 +38,9 @@ public:
virtual void save();
virtual void defaults();
private:
void reparseConfiguration();
private:
QList<ViewSettingsPageBase*> m_pages;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment