mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
complain about new_from_external overwriting an existing row
This commit is contained in:
parent
426cbd0287
commit
a30ef6d0b4
1 changed files with 12 additions and 0 deletions
|
|
@ -229,6 +229,18 @@ void MixerSnapshotList::choose_external_dialog_response(int response)
|
|||
|
||||
const string external = _external_selector.get_filename();
|
||||
const string name = basename_nosuffix(external);
|
||||
|
||||
TreeModel::const_iterator iter = get_row_by_name(name);
|
||||
if(iter) {
|
||||
//prompt for overwriting
|
||||
const string name = (*iter)[_columns.name];
|
||||
if(prompt_overwrite(name)) {
|
||||
remove_row(iter);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_session->snapshot_manager().create_snapshot(name, external, _global);
|
||||
|
||||
redisplay();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue