# HG changeset patch # User Chris Cannam # Date 1223558013 0 # Node ID 55cdd79606ba35bac0a885cd2bd466f0b9d363db # Parent 1304dbe4542e59596f7107bafc1a3d9f21c2bad4 * 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 diff -r 1304dbe4542e -r 55cdd79606ba widgets/ModelDataTableDialog.cpp --- 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(); +} diff -r 1304dbe4542e -r 55cdd79606ba widgets/ModelDataTableDialog.h --- a/widgets/ModelDataTableDialog.h Tue Oct 07 12:42:17 2008 +0000 +++ b/widgets/ModelDataTableDialog.h Thu Oct 09 13:13:33 2008 +0000 @@ -55,6 +55,8 @@ void editRow(); void togglePlayTracking(); + void modelRemoved(); + protected: void makeCurrent(int row); ModelDataTableModel *m_table;