mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
LocationCompleter: Call closePopup+clearCompletion also in indexActivated
This commit is contained in:
parent
3469d5b114
commit
4ad5900604
|
@ -204,6 +204,11 @@ void LocationCompleter::indexActivated(const QModelIndex &index)
|
|||
{
|
||||
Q_ASSERT(index.isValid());
|
||||
|
||||
closePopup();
|
||||
|
||||
// Clear locationbar
|
||||
emit clearCompletion();
|
||||
|
||||
bool ok;
|
||||
const int tabPos = index.data(LocationCompleterModel::TabPositionTabRole).toInt(&ok);
|
||||
|
||||
|
@ -321,11 +326,6 @@ void LocationCompleter::switchToTab(BrowserWindow* window, int tab)
|
|||
Q_ASSERT(window);
|
||||
Q_ASSERT(tab >= 0);
|
||||
|
||||
closePopup();
|
||||
|
||||
// Clear locationbar
|
||||
emit clearCompletion();
|
||||
|
||||
TabWidget* tabWidget = window->tabWidget();
|
||||
|
||||
if (window->isActiveWindow() || tabWidget->currentIndex() != tab) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user