Skip to content

Commit 6383268

Browse files
committed
Merge #7772: Clear the input line after activating autocomplete
ae2156f Clear the input line after activating autocomplete (Pavel Janík)
2 parents 209dbeb + ae2156f commit 6383268

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ void RPCConsole::setClientModel(ClientModel *model)
459459
autoCompleter = new QCompleter(wordList, this);
460460
ui->lineEdit->setCompleter(autoCompleter);
461461

462+
// clear the lineEdit after activating from QCompleter
463+
connect(autoCompleter, SIGNAL(activated(const QString&)), ui->lineEdit, SLOT(clear()), Qt::QueuedConnection);
462464
}
463465
}
464466

0 commit comments

Comments
 (0)