comment
This commit is contained in:
parent
4f6e9bc87e
commit
024d181abb
1 changed files with 4 additions and 3 deletions
|
@ -132,9 +132,10 @@ Window Rootmenu::useAutoGroupWindow()
|
|||
auto_group_window = 0; // clear it immediately
|
||||
// If not set check the parent and the parent's parent, ...
|
||||
else {
|
||||
Rootmenu* parent = dynamic_cast<Rootmenu*>(GetParent());
|
||||
if (parent)
|
||||
w = parent->useAutoGroupWindow();
|
||||
// TODO: dynamic_cast throws std::bad_cast!
|
||||
Rootmenu *p = dynamic_cast<Rootmenu*>(parent());
|
||||
if (p)
|
||||
w = p->useAutoGroupWindow();
|
||||
}
|
||||
return w;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue