1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

LocationCompleter: Fix incorrectly showing search action after domain completion

This commit is contained in:
David Rosca 2017-08-12 15:09:05 +02:00
parent 5f9fe54086
commit 20010eb3c4

View File

@ -120,6 +120,9 @@ void LocationCompleter::refreshJobFinished()
if (qzSettings->useInlineCompletion) {
emit showDomainCompletion(job->domainCompletion());
m_originalText = m_locationBar->text();
s_view->setOriginalText(m_originalText);
}
}
@ -372,8 +375,8 @@ void LocationCompleter::adjustPopupSize()
const int popupHeight = s_view->sizeHintForRow(0) * qMin(maxItemsCount, s_model->rowCount()) + 2 * s_view->frameWidth();
m_originalText = m_locationBar->text();
s_view->setOriginalText(m_originalText);
s_view->resize(s_view->width(), popupHeight);
s_view->show();
}