diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-12-10 14:00:08 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-10 09:12:49 -0700 |
commit | 7e2f7747d68139d9b335a1e7e0f309baba5912ca (patch) | |
tree | 1ebfbe4d44095768da7a5ba1f2beb37e4b8eaba4 /qt-ui | |
parent | 7ea27a2d88083b5e705b72b9b5e36db13b824b06 (diff) | |
download | subsurface-7e2f7747d68139d9b335a1e7e0f309baba5912ca.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/completionmodels.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); \ } |