mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:46:03 +00:00
UI: *Edit: Refactor of initializeFocus()
This commit is contained in:
parent
78900b97b8
commit
67513ff7e7
@ -191,7 +191,6 @@ void ProgramEditDialog::initializeFocus()
|
||||
} else if (isWildcard()) {
|
||||
m_editWildcard->setFocus();
|
||||
} else {
|
||||
m_editPath->selectAll();
|
||||
m_editPath->setFocus();
|
||||
}
|
||||
}
|
||||
|
@ -82,8 +82,11 @@ void RuleEditDialog::initializeRuleSet()
|
||||
|
||||
void RuleEditDialog::initializeFocus()
|
||||
{
|
||||
m_editName->selectAll();
|
||||
m_editName->setFocus();
|
||||
if (isEmpty()) {
|
||||
m_editName->setFocus();
|
||||
} else {
|
||||
m_editRuleText->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void RuleEditDialog::setupController()
|
||||
|
@ -66,7 +66,6 @@ void ZoneEditDialog::initializeBySource(const ZoneSourceWrapper &zoneSource)
|
||||
|
||||
void ZoneEditDialog::initializeFocus()
|
||||
{
|
||||
m_editName->selectAll();
|
||||
m_editName->setFocus();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user