From 7e2f7747d68139d9b335a1e7e0f309baba5912ca Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 10 Dec 2014 14:00:08 -0200 Subject: [PATCH] Organize string-lists alphabetically for completion This micro patch adds the ability to sort the lists alphabetically for user interaction. Dirk asked me to do this for location, but this actually changes for location, divemaster, buddy and suit. Seems a good thing for all. Fixes #780 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/completionmodels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-ui/completionmodels.cpp b/qt-ui/completionmodels.cpp index 7d7f7cd2b..1ac184681 100644 --- a/qt-ui/completionmodels.cpp +++ b/qt-ui/completionmodels.cpp @@ -15,6 +15,7 @@ list.append(buddy); \ } \ } \ + std::sort(list.begin(), list.end()); \ setStringList(list); \ }