src/hierarchyelement.cpp

changeset 1097
9a9e6ce0c5dc
parent 1086
621c2e5853bb
child 1160
2cf16ba952bf
--- a/src/hierarchyelement.cpp	Wed Feb 08 17:07:19 2017 +0200
+++ b/src/hierarchyelement.cpp	Thu Feb 09 00:32:24 2017 +0200
@@ -38,7 +38,8 @@
 		// Drat! It doesn't seem to have the MainWindow as a parent! We'll need to force it to be in one.
 		// This shouldn't have any side effects but also shouldn't happen regardless.
 		m_window = g_win;
-		print("Hierarchy element instance %1 should be in the hierarchy of a MainWindow, but isn't.\n", this);
+		print("Hierarchy element instance %1 should have a MainWindow parent, but it is %2 (%3).\n", this,
+		      parent, parent ? parent->metaObject()->className() : "nullptr");
 	}
 
 	m_documents = m_window->documents();

mercurial