--- 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);