[Pkg-mpd-commits] [qmpdclient] 23/38: Fixed same-case entries in views being lost
Andrey Rahmatullin
wrar at moszumanska.debian.org
Mon May 23 07:19:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
wrar pushed a commit to branch master
in repository qmpdclient.
commit 030366d2ebb69d6fbbc287166484770b60ba84bb
Author: Voker57 <voker57 at gmail.com>
Date: Sun May 19 21:09:35 2013 +0400
Fixed same-case entries in views being lost
---
src/stringlistview.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/stringlistview.cpp b/src/stringlistview.cpp
index 44320d5..55e1675 100644
--- a/src/stringlistview.cpp
+++ b/src/stringlistview.cpp
@@ -24,7 +24,7 @@
#include "stringlistview.h"
#include "mpd.h"
#include "config.h"
-#include <QMap>
+#include <QMultiMap>
#include <QMenu>
#include <QItemSelectionModel>
@@ -89,7 +89,7 @@ QString StringListView::normalizeString(const QString l) {
*/
QStringList StringListView::sort(const QStringList &strings, bool normalize) {
// Recommended way to have arbitrary sorting from QT docs
- QMap<QString, QString> map;
+ QMultiMap<QString, QString> map;
foreach (QString str, strings) {
if (normalize)
map.insert(StringListView::normalizeString(str.toLower()), str);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/qmpdclient.git
More information about the Pkg-mpd-commits
mailing list