1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006, 2007 Andreas Persson |
* Copyright (C) 2006-2008 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
315 |
Gtk::TreeModel::Row row = *it; |
Gtk::TreeModel::Row row = *it; |
316 |
gig::dimension_def_t* dim = row[tableModel.m_definition]; |
gig::dimension_def_t* dim = row[tableModel.m_definition]; |
317 |
region->DeleteDimension(dim); |
region->DeleteDimension(dim); |
|
// remove respective row from table |
|
|
refTableModel->erase(it); |
|
318 |
// let everybody know there was a change |
// let everybody know there was a change |
319 |
region_changed_signal.emit(region); |
region_changed_signal.emit(region); |
320 |
|
// update all GUI elements |
321 |
|
refreshManager(); |
322 |
} catch (RIFF::Exception e) { |
} catch (RIFF::Exception e) { |
323 |
// notify that the changes are over (i.e. to avoid dead locks) |
// notify that the changes are over (i.e. to avoid dead locks) |
324 |
region_changed_signal.emit(region); |
region_changed_signal.emit(region); |