Browse Source

Clear the input line after activating autocomplete

pull/1/head
Pavel Janík 7 years ago
parent
commit
ae2156f123
  1. 2
      src/qt/rpcconsole.cpp

2
src/qt/rpcconsole.cpp

@ -459,6 +459,8 @@ void RPCConsole::setClientModel(ClientModel *model) @@ -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);
}
}

Loading…
Cancel
Save