mirror of https://github.com/buggins/dlangui.git
Change try..finally to more compact scope(exit)
This commit is contained in:
parent
cd1cc7c1f6
commit
fa2cddad34
|
|
@ -498,14 +498,8 @@ class RadioButton : ImageTextButton {
|
|||
RadioButton rb = cast(RadioButton)child;
|
||||
if (rb) {
|
||||
rb.blockUnchecking = true;
|
||||
try
|
||||
{
|
||||
rb.checked = false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
rb.blockUnchecking = false;
|
||||
}
|
||||
scope(exit) rb.blockUnchecking = false;
|
||||
rb.checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue