src/hierarchyelement.cpp

changeset 985
ed7b31b9f904
parent 978
4603d8fd063e
child 997
1b49f34e533d
--- a/src/hierarchyelement.cpp	Sun Sep 06 03:10:03 2015 +0300
+++ b/src/hierarchyelement.cpp	Sun Sep 06 03:17:29 2015 +0300
@@ -10,7 +10,7 @@
 {
 	if (parent)
 	{
-		while (parent->parent() != nullptr)
+		while (parent->parent())
 			parent = parent->parent();
 
 		m_window = qobject_cast<MainWindow*> (parent);

mercurial