mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
FIX(client): Debug Assertion Failed in getPlugins
Expression: invalid comparator Thrown when opening the Settings window. This started happening when I had multiple shortcuts defined and running in debug mode. std::sort requires strict weak ordering. This fixes the compare to provide it.
This commit is contained in:
parent
643377dcd6
commit
247fe17dbd
@ -480,7 +480,7 @@ const QVector< const_plugin_ptr_t > PluginManager::getPlugins(bool sorted) const
|
||||
std::sort(ids.begin(), ids.end(), [this](plugin_id_t first, plugin_id_t second) {
|
||||
return QString::compare(m_pluginHashMap.value(first)->getName(), m_pluginHashMap.value(second)->getName(),
|
||||
Qt::CaseInsensitive)
|
||||
<= 0;
|
||||
< 0;
|
||||
});
|
||||
|
||||
foreach (plugin_id_t currentID, ids) { pluginList.append(m_pluginHashMap.value(currentID)); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user