generic: adjust to KIO changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-02 02:26:50 +03:00
parent 1dfcde2841
commit 5d5c792226
4 changed files with 6 additions and 15 deletions

View file

@ -38,7 +38,6 @@
#include <KMenu> #include <KMenu>
#include <KProtocolInfo> #include <KProtocolInfo>
#include <KProtocolManager> #include <KProtocolManager>
#include <KIO/Scheduler>
#include <KConfigGroup> #include <KConfigGroup>
#define DATA_KEY QLatin1String("Charset") #define DATA_KEY QLatin1String("Charset")
@ -219,7 +218,7 @@ void DolphinRemoteEncoding::slotDefault()
void DolphinRemoteEncoding::updateView() void DolphinRemoteEncoding::updateView()
{ {
KIO::Scheduler::emitReparseSlaveConfiguration(); KProtocolManager::reparseConfiguration();
// 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();

View file

@ -104,15 +104,8 @@ void KSaveIOConfig::setAutoResume( bool _mode )
void KSaveIOConfig::updateRunningIOSlaves (QWidget *parent) void KSaveIOConfig::updateRunningIOSlaves (QWidget *parent)
{ {
// Inform all running io-slaves about the changes... KMessageBox::information(
// if we cannot update, ioslaves inform the end user... parent,
QDBusMessage message = QDBusMessage::createSignal("/KIO/Scheduler", "org.kde.KIO.Scheduler", "reparseSlaveConfiguration"); i18n("You have to restart the running applications for these changes to take effect.")
message << QString(); );
if (!QDBusConnection::sessionBus().send(message))
{
KMessageBox::information (parent,
i18n("You have to restart the running applications "
"for these changes to take effect."),
i18nc("@title:window", "Update Failed"));
}
} }

View file

@ -45,7 +45,6 @@
#include <klocale.h> #include <klocale.h>
#include <kprotocolinfo.h> #include <kprotocolinfo.h>
#include <kio/global.h> #include <kio/global.h>
#include <kio/slaveconfig.h>
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include "kio_camera.h" #include "kio_camera.h"

View file

@ -24,8 +24,8 @@
#include <KFileItem> #include <KFileItem>
#include <KProtocolInfo> #include <KProtocolInfo>
#include <KUrl> #include <KUrl>
#include <KIO/Job>
#include <KIO/StatJob> #include <KIO/StatJob>
#include <KIO/Scheduler>
AsyncFileTester::AsyncFileTester(const QModelIndex &index, QObject *object, const char *member) AsyncFileTester::AsyncFileTester(const QModelIndex &index, QObject *object, const char *member)