summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-11-29 19:33:59 +0900
committerMichele Calgaro <[email protected]>2020-11-29 19:33:59 +0900
commiteb6e378c5c2c4d4227a0572e101b7e032466dbb2 (patch)
treecbe378c2d7dcee71aa0249ae210be57c5f6ec8ee
parente13283fb02daf24eaf8fdb98057cf03c1bd46fd4 (diff)
downloadtdebase-eb6e378c5c2c4d4227a0572e101b7e032466dbb2.tar.gz
tdebase-eb6e378c5c2c4d4227a0572e101b7e032466dbb2.zip
Konqueror/KDesktop popup menu: sort service actions by filename to ensure consistency.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--libkonq/konq_popupmenu.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/libkonq/konq_popupmenu.cc b/libkonq/konq_popupmenu.cc
index 6a562526c..406e419ec 100644
--- a/libkonq/konq_popupmenu.cc
+++ b/libkonq/konq_popupmenu.cc
@@ -697,10 +697,9 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
}
// findAllResources() also removes duplicates
- const TQStringList entries = TDEGlobal::dirs()->findAllResources("data",
- "konqueror/servicemenus/*.desktop",
- false /* recursive */,
- true /* unique */);
+ TQStringList entries = TDEGlobal::dirs()->findAllResources("data",
+ "konqueror/servicemenus/*.desktop", false, true);
+ entries.sort(); // sort to ensure consistent order in popup menu
TQStringList::ConstIterator eIt = entries.begin();
const TQStringList::ConstIterator eEnd = entries.end();
for (; eIt != eEnd; ++eIt )
@@ -832,7 +831,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
const TQString priority = cfg.readEntry("X-TDE-Priority");
const TQString submenuName = cfg.readEntry( "X-TDE-Submenu" );
- ServiceList* list = s.selectList( priority, submenuName );
+ ServiceList *list = s.selectList( priority, submenuName );
(*list) += KDEDesktopMimeType::userDefinedServices( *eIt, cfg, url.isLocalFile(), m_lstPopupURLs );
}
}