diff widgets/CommandHistory.cpp @ 503:133b378d8efe

* more activity updates
author Chris Cannam
date Tue, 24 Feb 2009 16:44:43 +0000
parents 73a58a4dfebd
children 4ba0476ebbb6
line wrap: on
line diff
--- a/widgets/CommandHistory.cpp	Tue Feb 24 14:01:42 2009 +0000
+++ b/widgets/CommandHistory.cpp	Tue Feb 24 16:44:43 2009 +0000
@@ -35,7 +35,9 @@
 
 #include <iostream>
 
-//#define DEBUG_COMMAND_HISTORY 1
+#include <typeinfo>
+
+#define DEBUG_COMMAND_HISTORY 1
 
 CommandHistory *CommandHistory::m_instance = 0;
 
@@ -141,7 +143,7 @@
     if (!command) return;
 
 #ifdef DEBUG_COMMAND_HISTORY
-    std::cerr << "CommandHistory::addCommand: " << command->getName().toLocal8Bit().data() << " at " << command << ": execute = " << execute << ", bundle = " << bundle << " (m_currentCompound = " << m_currentCompound << ", m_currentBundle = " << m_currentBundle << ")" << std::endl;
+    std::cerr << "CommandHistory::addCommand: " << command->getName().toLocal8Bit().data() << " of type " << typeid(*command).name() << " at " << command << ": execute = " << execute << ", bundle = " << bundle << " (m_currentCompound = " << m_currentCompound << ", m_currentBundle = " << m_currentBundle << ")" << std::endl;
 #endif
 
     if (m_currentCompound) {