Browse Source

Merge #7772: Clear the input line after activating autocomplete

ae2156f Clear the input line after activating autocomplete (Pavel Janík)
0.13
Jonas Schnelli 9 years ago
parent
commit
6383268893
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  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