diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/dolphinremoteencoding.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp index 33c5868d6..2887ee22d 100644 --- a/src/views/dolphinremoteencoding.cpp +++ b/src/views/dolphinremoteencoding.cpp @@ -114,8 +114,9 @@ void DolphinRemoteEncoding::updateMenu() m_menu->menu()->actions().at(i)->setChecked(false); } - const QString charset = KCharsets::charsets()->descriptionForEncoding(KProtocolManager::charsetFor(m_currentURL)); - if (!charset.isEmpty()) { + const QString charsetFor = KProtocolManager::charsetFor(m_currentURL); + if (!charsetFor.isEmpty()) { + const QString charset = KCharsets::charsets()->descriptionForEncoding(charsetFor); int id = 0; bool isFound = false; for (int i = 0; i < m_encodingDescriptions.size(); i++) { |
