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:
cxl 2017-06-20 22:26:32 +00:00
parent 7ceed6abb6
commit 4b16094c2c

View file

@ -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()