Minor cleanup
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
4139cf0ab2
commit
38a64e25b3
|
@ -121,10 +121,7 @@ QObject *Utilities::getNativeParent(const QObject *object)
|
|||
QObject *parent = object->parent();
|
||||
while (parent) {
|
||||
QObject *p = parent->parent();
|
||||
if (!p) {
|
||||
return parent;
|
||||
}
|
||||
if (p->isWindowType()) {
|
||||
if (!p || p->isWindowType()) {
|
||||
return parent;
|
||||
}
|
||||
parent = p;
|
||||
|
|
Loading…
Reference in New Issue