diff widgets/ModelDataTableDialog.cpp @ 428:55cdd79606ba

* Support transforms that output regions with more than one bin (by creating more than one region) * When model displayed in the spreadsheet dialog is deleted, close the dialog in preference to crashing
author Chris Cannam
date Thu, 09 Oct 2008 13:13:33 +0000
parents feeb48f7478a
children 2e8194a30f40
line wrap: on
line diff
--- a/widgets/ModelDataTableDialog.cpp	Tue Oct 07 12:42:17 2008 +0000
+++ b/widgets/ModelDataTableDialog.cpp	Thu Oct 09 13:13:33 2008 +0000
@@ -125,6 +125,8 @@
             this, SLOT(addCommand(Command *)));
     connect(m_table, SIGNAL(currentChanged(const QModelIndex &)),
             this, SLOT(currentChangedThroughResort(const QModelIndex &)));
+    connect(m_table, SIGNAL(modelRemoved()),
+            this, SLOT(modelRemoved()));
 
     QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Close);
     connect(bb, SIGNAL(rejected()), this, SLOT(close()));
@@ -268,5 +270,10 @@
     makeCurrent(index.row());
 }
 
+void
+ModelDataTableDialog::modelRemoved()
+{
+    close();
+}