diff widgets/ModelDataTableDialog.cpp @ 397:2c59b0cd176b

* Update translations, and add change counter to name of bundle command
author Chris Cannam
date Thu, 12 Jun 2008 10:47:11 +0000
parents 2669267fb7ea
children 80e279e4f9fe
line wrap: on
line diff
--- a/widgets/ModelDataTableDialog.cpp	Thu Jun 12 09:03:00 2008 +0000
+++ b/widgets/ModelDataTableDialog.cpp	Thu Jun 12 10:47:11 2008 +0000
@@ -70,6 +70,8 @@
             this, SLOT(viewClicked(const QModelIndex &)));
     connect(m_tableView, SIGNAL(pressed(const QModelIndex &)),
             this, SLOT(viewPressed(const QModelIndex &)));
+    connect(m_table, SIGNAL(executeCommand(Command *)),
+            this, SLOT(executeCommand(Command *)));
 
     QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Close);
     connect(bb, SIGNAL(rejected()), this, SLOT(close()));
@@ -118,6 +120,7 @@
 void
 ModelDataTableDialog::executeCommand(Command *command)
 {
-    CommandHistory::getInstance()->addCommand(command, true, true);
+    std::cerr << "ModelDataTableDialog::executeCommand(" << command << ")" << std::endl;
+    CommandHistory::getInstance()->addCommand(command, false, true);
 }