Skip to content

Commit

Permalink
Fix QCompleter popup regression
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hebasto committed Oct 13, 2018
1 parent 1d14174 commit 081cc02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ bool RPCConsole::eventFilter(QObject* obj, QEvent *event)
// forward these events to lineEdit
if(obj == autoCompleter->popup()) {
QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
autoCompleter->popup()->hide();
return true;
}
break;
Expand Down

0 comments on commit 081cc02

Please sign in to comment.