aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-12-12 11:06:55 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-12 10:40:42 -0800
commit4487efcabe0fc13823135e4c9107ef9feb4877ae (patch)
treed2917688f9ee80a0d93f0b3ba1d4d58b7678d914
parentf22a708e273cf8dcd16d313fb6ad4833f8863425 (diff)
downloadsubsurface-4487efcabe0fc13823135e4c9107ef9feb4877ae.tar.gz
More lists organized alphabetically.
I forgot this one, tsc. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/completionmodels.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/completionmodels.cpp b/qt-ui/completionmodels.cpp
index 1ac184681..fd3cc7504 100644
--- a/qt-ui/completionmodels.cpp
+++ b/qt-ui/completionmodels.cpp
@@ -33,7 +33,9 @@
set.insert(value.trimmed()); \
} \
} \
- setStringList(set.toList()); \
+ QStringList setList = set.toList(); \
+ std::sort(setList.begin(), setList.end()); \
+ setStringList(setList); \
}
CREATE_CSV_UPDATE_METHOD(BuddyCompletionModel, buddy);