Skip to content

Commit

Permalink
Merge pull request #752 from UdjinM6/fixAutocompleter
Browse files Browse the repository at this point in the history
Clear the input line after activating autocomplete
  • Loading branch information
evan82 committed Apr 5, 2016
2 parents abbfb0a + ded163e commit 5fc47d4
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 @@ -474,6 +474,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 5fc47d4

Please sign in to comment.