mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Use DBus to reparse worker config
See https://phabricator.kde.org/T15956
This commit is contained in:
parent
d9c11ee999
commit
83608c97ec
|
@ -20,11 +20,12 @@
|
||||||
#include <KCharsets>
|
#include <KCharsets>
|
||||||
#include <KConfig>
|
#include <KConfig>
|
||||||
#include <KConfigGroup>
|
#include <KConfigGroup>
|
||||||
#include <KIO/Scheduler>
|
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <KProtocolInfo>
|
#include <KProtocolInfo>
|
||||||
#include <KProtocolManager>
|
#include <KProtocolManager>
|
||||||
|
|
||||||
|
#include <QDBusConnection>
|
||||||
|
#include <QDBusMessage>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#define DATA_KEY QStringLiteral("Charset")
|
#define DATA_KEY QStringLiteral("Charset")
|
||||||
|
@ -210,7 +211,11 @@ void DolphinRemoteEncoding::slotDefault()
|
||||||
|
|
||||||
void DolphinRemoteEncoding::updateView()
|
void DolphinRemoteEncoding::updateView()
|
||||||
{
|
{
|
||||||
KIO::Scheduler::emitReparseSlaveConfiguration();
|
QDBusMessage message =
|
||||||
|
QDBusMessage::createSignal(QStringLiteral("/KIO/Scheduler"), QStringLiteral("org.kde.KIO.Scheduler"), QStringLiteral("reparseSlaveConfiguration"));
|
||||||
|
message << QString();
|
||||||
|
QDBusConnection::sessionBus().send(message);
|
||||||
|
|
||||||
// Reload the page with the new charset
|
// Reload the page with the new charset
|
||||||
m_actionHandler->currentView()->setUrl(m_currentURL);
|
m_actionHandler->currentView()->setUrl(m_currentURL);
|
||||||
m_actionHandler->currentView()->reload();
|
m_actionHandler->currentView()->reload();
|
||||||
|
|
Loading…
Reference in a new issue