remove old workaround; update copy of the code, even though in konqueror bug 247552 didn't happen because KonqMainWindow calls insertItems() every time, to add history entries.

svn path=/trunk/KDE/kdebase/apps/; revision=1164476
This commit is contained in:
David Faure 2010-08-16 21:05:17 +00:00
parent 9977db1e99
commit b4cea8e7a2

View file

@ -869,6 +869,8 @@ void KonqComboLineEdit::setCompletedItems( const QStringList& items, bool )
const bool blocked = completionbox->blockSignals(true);
completionbox->setCurrentItem(matchedItem);
completionbox->blockSignals(blocked);
} else {
completionbox->setCurrentRow(-1);
}
}
else { // completion box not visible yet -> show it
@ -946,10 +948,6 @@ void KonqComboCompletionBox::setItems( const QStringList& items )
sizeAndPosition();
blockSignals( block );
// Trigger d->down_workaround = true within KCompletionBox
QStringList dummy;
KCompletionBox::insertItems( dummy, 1 );
}
void KonqComboCompletionBox::insertStringList( const QStringList & list, int index )