Skip to content

Commit

Permalink
Clear the input line after activating autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Mar 30, 2016
1 parent e8a8f3d commit ae2156f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ void RPCConsole::setClientModel(ClientModel *model)
autoCompleter = new QCompleter(wordList, this);
ui->lineEdit->setCompleter(autoCompleter);

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

Expand Down

0 comments on commit ae2156f

Please sign in to comment.