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
|
auto_group_window = 0; // clear it immediately
|
||||||
// If not set check the parent and the parent's parent, ...
|
// If not set check the parent and the parent's parent, ...
|
||||||
else {
|
else {
|
||||||
Rootmenu* parent = dynamic_cast<Rootmenu*>(GetParent());
|
// TODO: dynamic_cast throws std::bad_cast!
|
||||||
if (parent)
|
Rootmenu *p = dynamic_cast<Rootmenu*>(parent());
|
||||||
w = parent->useAutoGroupWindow();
|
if (p)
|
||||||
|
w = p->useAutoGroupWindow();
|
||||||
}
|
}
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue