diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-15 13:55:11 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-15 13:55:11 +0100 |
commit | 4b76d828f7960260733bbabbb22a32ed2ffa3a96 (patch) | |
tree | e215841b5939a48f8ef44e243ab0852e6e27e220 /src/plugins/locator | |
parent | 2a63387085ab23fc30a23996e4e5eb63b57f33a7 (diff) | |
download | qt-creator-4b76d828f7960260733bbabbb22a32ed2ffa3a96.tar.gz |
CommandLocator: Sort filter by priority and id, fix hg filter enabling.
Diffstat (limited to 'src/plugins/locator')
-rw-r--r-- | src/plugins/locator/locatorplugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/locator/locatorplugin.cpp b/src/plugins/locator/locatorplugin.cpp index c7ec53d40b..2f216f1eac 100644 --- a/src/plugins/locator/locatorplugin.cpp +++ b/src/plugins/locator/locatorplugin.cpp @@ -66,7 +66,11 @@ using namespace Locator::Internal; namespace { static bool filterLessThan(const ILocatorFilter *first, const ILocatorFilter *second) { - return first->priority() < second->priority(); + if (first->priority() < second->priority()) + return true; + if (first->id().compare(second->id(), Qt::CaseInsensitive) < 0) + return true; + return false; } } |