mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: Progress: Avoided recursion on progress not being opened.
git-svn-id: svn://ultimatepp.org/upp/trunk@11187 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7ceed6abb6
commit
4b16094c2c
1 changed files with 9 additions and 7 deletions
|
|
@ -178,13 +178,15 @@ void Progress::Create() {
|
|||
Open(owner);
|
||||
else
|
||||
Open();
|
||||
SetFocus();
|
||||
Show();
|
||||
modality.Begin(this);
|
||||
if(total) Set(pos, total);
|
||||
Setxt();
|
||||
Sync();
|
||||
Process();
|
||||
if(IsOpen()) { // in some context, e.g. headless skeleton, window does not open - need prevent infinite recursion here
|
||||
SetFocus();
|
||||
Show();
|
||||
modality.Begin(this);
|
||||
if(total) Set(pos, total);
|
||||
Setxt();
|
||||
Sync();
|
||||
Process();
|
||||
}
|
||||
}
|
||||
|
||||
void Progress::Process()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue