From 3114bcbd8dffd60f158dd5a164f5192ed8323f96 Mon Sep 17 00:00:00 2001 From: Silarn Date: Fri, 27 Apr 2018 20:21:42 -0500 Subject: Fix ESL index display and sorting by index --- src/pluginlistsortproxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pluginlistsortproxy.cpp') diff --git a/src/pluginlistsortproxy.cpp b/src/pluginlistsortproxy.cpp index 342b3744..b844e1d8 100644 --- a/src/pluginlistsortproxy.cpp +++ b/src/pluginlistsortproxy.cpp @@ -100,8 +100,8 @@ bool PluginListSortProxy::lessThan(const QModelIndex &left, } } break; case PluginList::COL_MODINDEX: { - int leftVal = plugins->isEnabled(left.row()) ? plugins->getPriority(left.row()) : -1; - int rightVal = plugins->isEnabled(right.row()) ? plugins->getPriority(right.row()) : -1; + int leftVal = plugins->isEnabled(left.row()) ? plugins->getIndexPriority(left.row()) : -1; + int rightVal = plugins->isEnabled(right.row()) ? plugins->getIndexPriority(right.row()) : -1; return leftVal < rightVal; } break; default: { -- cgit v1.3.1