From: Dawit Alemayehu Date: Wed, 18 Jan 2012 18:30:54 +0000 (-0500) Subject: When populating the "Show Remote Encoding" menu, put the check mark besides X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/7dc1741277b1cb6b9cb1f3c0ee754b32ad347a87 When populating the "Show Remote Encoding" menu, put the check mark besides the correct saved remote encoding charset. BUG: 186289 FIXED-IN: 4.8.0 REVIEW: 103730 --- diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp index 8644f5cc2..375b3fd46 100644 --- a/src/views/dolphinremoteencoding.cpp +++ b/src/views/dolphinremoteencoding.cpp @@ -132,14 +132,14 @@ void DolphinRemoteEncoding::updateMenu() m_menu->menu()->actions().at(i)->setChecked(false); } - QString charset = KIO::SlaveConfig::self()->configData(m_currentURL.protocol(), - m_currentURL.host(), DATA_KEY); + QString charset = KGlobal::charsets()->descriptionForEncoding(KIO::SlaveConfig::self()->configData(m_currentURL.protocol(), + m_currentURL.host(), DATA_KEY)); if (!charset.isEmpty()) { int id = 0; bool isFound = false; for (int i = 0; i < m_encodingDescriptions.size(); i++) { - if (m_encodingDescriptions.at(i).contains(charset)) { + if (m_encodingDescriptions.at(i) == charset) { isFound = true; id = i; break;