Skip to content

Commit 081cc02

Browse files
committed
Fix QCompleter popup regression
The PR #8129 has introduced a regression with the QCompleter popup in the Debug window. How to reproduce: 1) open the Debug window; 2) go to the 'Console' tab; 3) start writing some rpc command and try to pick it from the list using arrow keys, press Enter. Note that the popup used to display completions is not being closed. To close it they should mouse click somewhere outside of the popup.
1 parent 1d14174 commit 081cc02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ bool RPCConsole::eventFilter(QObject* obj, QEvent *event)
536536
// forward these events to lineEdit
537537
if(obj == autoCompleter->popup()) {
538538
QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
539+
autoCompleter->popup()->hide();
539540
return true;
540541
}
541542
break;

0 commit comments

Comments
 (0)