summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Haumann <dhaumann@kde.org>2014-01-22 17:33:36 (GMT)
committerDominik Haumann <dhaumann@kde.org>2014-01-22 17:34:02 (GMT)
commitb3526463273180f85a1574d05f97920b39c39d75 (patch)
treeb730f17711b2e1538647f01c2acc00501d9249d5
parent5c712e5c71526c80486e6593a35f780902472be2 (diff)
backport: no document duplicates in quick open
backport commit 574f2f6b870efe8471751db45d43e62013c6e4b2 FIXED IN: 4.13
-rw-r--r--kate/app/katequickopen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kate/app/katequickopen.cpp b/kate/app/katequickopen.cpp
index dad8939..219781b 100644
--- a/kate/app/katequickopen.cpp
+++ b/kate/app/katequickopen.cpp
@@ -165,6 +165,10 @@ void KateQuickOpen::update ()
i2.next();
KTextEditor::Document *doc = i2.value()->document();
+
+ if (alreadySeenDocs.contains(doc))
+ continue;
+
alreadySeenDocs.insert (doc);
//QStandardItem *item=new QStandardItem(i18n("%1: %2",doc->documentName(),doc->url().pathOrUrl()));