Mercurial > hg > svgui
changeset 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 | 1304dbe4542e |
children | 427e5c58658e |
files | widgets/ModelDataTableDialog.cpp widgets/ModelDataTableDialog.h |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
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(); +}