┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFushan Wen <[email protected]>2021-11-08 15:46:48 +0800
committerFushan Wen <[email protected]>2021-11-27 17:51:14 +0800
commit4585f215a9bdec200ced7dad1820f7248281ada3 (patch)
tree9e813ead5f3b81118c22cf3385adce5191cc7ea2 /src
parentcdb4a7909d256b1565383884f271214d4796cdbb (diff)
Move "Default" option to the front in "Select Remote Charset" menu
The ordering of encodings is different from other KDE apps in "Select Remote Charset" menu. We should keep the UI consistency. BUG: 445148
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphinremoteencoding.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp
index 41b3b6890..c7c8b09d1 100644
--- a/src/views/dolphinremoteencoding.cpp
+++ b/src/views/dolphinremoteencoding.cpp
@@ -90,7 +90,7 @@ void DolphinRemoteEncoding::fillMenu()
QMenu* menu = m_menu->menu();
menu->clear();
-
+ menu->addAction(i18n("Default"), this, SLOT(slotDefault()), 0)->setCheckable(true);
for (int i = 0; i < m_encodingDescriptions.size();i++) {
QAction* action = new QAction(m_encodingDescriptions.at(i), this);
action->setCheckable(true);
@@ -100,7 +100,6 @@ void DolphinRemoteEncoding::fillMenu()
menu->addSeparator();
menu->addAction(i18n("Reload"), this, SLOT(slotReload()), 0);
- menu->addAction(i18n("Default"), this, SLOT(slotDefault()), 0)->setCheckable(true);
m_idDefault = m_encodingDescriptions.size() + 2;
connect(menu, &QMenu::triggered, this, &DolphinRemoteEncoding::slotItemSelected);