mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Set m_ignoreCurrentChangedSignal to false directly after setCurrentIndex()
instead of in currentChanged(). This solves problems for the very first popup not triggering currentChanged(), so in that case the first item did not set the completion url. As long as the connection type to currentChanged() remains a DirectConnection, this fix should work.
This commit is contained in:
parent
251ab8af66
commit
c36e59c31e
@ -65,7 +65,6 @@ void LocationCompleter::showMostVisited()
|
||||
void LocationCompleter::currentChanged(const QModelIndex &index)
|
||||
{
|
||||
if (m_ignoreCurrentChangedSignal) {
|
||||
m_ignoreCurrentChangedSignal = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -124,6 +123,7 @@ void LocationCompleter::adjustPopupSize()
|
||||
s_view->resize(s_view->width(), popupHeight);
|
||||
m_ignoreCurrentChangedSignal = true;
|
||||
s_view->setCurrentIndex(QModelIndex());
|
||||
m_ignoreCurrentChangedSignal = false;
|
||||
s_view->show();
|
||||
|
||||
m_originalText = m_locationBar->text();
|
||||
|
Loading…
Reference in New Issue
Block a user