avoid duplicate entries in konqueror address completion list

history list is added to completion list giving duplicates.
Avoid this by removing duplicates

BUG: 144751
FIXED-IN: 4.9.1
This commit is contained in:
Martin Koller 2012-08-17 21:02:23 +02:00
parent 199fabbaa8
commit 7d1f76d3d7

View file

@ -3177,6 +3177,7 @@ void KonqMainWindow::slotMatch( const QString &match )
m_combo->completionMode() == KGlobalSettings::CompletionPopupAuto ) {
QStringList items = m_pURLCompletion->allMatches();
items += historyPopupCompletionItems( m_combo->currentText() );
items.removeDuplicates(); // when items from completion are also in history
// items.sort(); // should we?
m_combo->setCompletedItems( items );
}