mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
show the address dialog with current address selected
This commit is contained in:
parent
3a4f75ff62
commit
0b1445f8b5
1 changed files with 2 additions and 1 deletions
|
@ -116,8 +116,9 @@ void AddressBarDialog::setupUI() {
|
||||||
|
|
||||||
void AddressBarDialog::showEvent(QShowEvent* event) {
|
void AddressBarDialog::showEvent(QShowEvent* event) {
|
||||||
_goButton->setIcon(QIcon(PathUtils::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON));
|
_goButton->setIcon(QIcon(PathUtils::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON));
|
||||||
_addressLineEdit->setText(QString());
|
_addressLineEdit->setText(AddressManager::getInstance().currentAddress().toString());
|
||||||
_addressLineEdit->setFocus();
|
_addressLineEdit->setFocus();
|
||||||
|
_addressLineEdit->selectAll();
|
||||||
FramelessDialog::showEvent(event);
|
FramelessDialog::showEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue