diff main/MainWindow.cpp @ 753:61c0f32d93b3

Some temporary action debug output
author Chris Cannam
date Wed, 13 Aug 2014 09:09:16 +0100
parents 1192963e2d83
children 7d0367e9642c
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Aug 11 11:30:18 2014 +0100
+++ b/main/MainWindow.cpp	Wed Aug 13 09:09:16 2014 +0100
@@ -1065,6 +1065,7 @@
     m_paneActions[action] = LayerConfiguration(LayerFactory::TimeRuler);
     m_keyReference->registerShortcut(action);
     menu->addAction(action);
+    cerr << "created new pane action " << action << ", name " << action->text() << endl;
 
     menu->addSeparator();
 
@@ -3424,6 +3425,8 @@
 {
     QObject *s = sender();
     QAction *action = dynamic_cast<QAction *>(s);
+
+    cerr << "addPane: sender is " << s << ", action is " << action << ", name " << action->text() << endl;
     
     if (!action) {
 	cerr << "WARNING: MainWindow::addPane: sender is not an action"
@@ -3436,6 +3439,11 @@
     if (i == m_paneActions.end()) {
 	cerr << "WARNING: MainWindow::addPane: unknown action "
 		  << action->objectName() << endl;
+        cerr << "known actions are:" << endl;
+        for (PaneActionMap::const_iterator i = m_paneActions.begin();
+             i != m_paneActions.end(); ++i) {
+            cerr << i->first << ", name " << i->first->text() << endl;
+        }
 	return;
     }