┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinremoteencoding.cpp
diff options
context:
space:
mode:
authorDawit Alemayehu <[email protected]>2012-11-22 11:07:58 -0500
committerDawit Alemayehu <[email protected]>2012-12-21 08:14:39 -0500
commit6285f4b9df25618fe5bcfddb49066ec96be23a2d (patch)
tree400058197eb67ca7ac7f721ab13d43a43a7c16de /src/views/dolphinremoteencoding.cpp
parentc5491a8d2099a3b2885ecd9cf571f4811f5ffb8c (diff)
KIO::SlaveConfig::configData -> KProtocolManager::charsetFor for KF5.
Diffstat (limited to 'src/views/dolphinremoteencoding.cpp')
-rw-r--r--src/views/dolphinremoteencoding.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp
index 375b3fd46..04b350eda 100644
--- a/src/views/dolphinremoteencoding.cpp
+++ b/src/views/dolphinremoteencoding.cpp
@@ -38,7 +38,6 @@
#include <KMenu>
#include <KProtocolInfo>
#include <KProtocolManager>
-#include <KIO/SlaveConfig>
#include <KIO/Scheduler>
#include <KConfigGroup>
@@ -132,9 +131,7 @@ void DolphinRemoteEncoding::updateMenu()
m_menu->menu()->actions().at(i)->setChecked(false);
}
- QString charset = KGlobal::charsets()->descriptionForEncoding(KIO::SlaveConfig::self()->configData(m_currentURL.protocol(),
- m_currentURL.host(), DATA_KEY));
-
+ const QString charset = KGlobal::charsets()->descriptionForEncoding(KProtocolManager::charsetFor(m_currentURL));
if (!charset.isEmpty()) {
int id = 0;
bool isFound = false;