diff options
-rw-r--r-- | qt-ui/completionmodels.cpp | 4 |
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); |