From 21ea541267361b03c66a9cc330b7c862d7bc8e85 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 19 Sep 2008 10:42:09 +0000 Subject: shift-click to extend marker selection; marker drag moves all selected markers git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3758 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_audio_import.cc | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'gtk2_ardour/editor_audio_import.cc') diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 3d75de782c..2daec610bd 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -330,24 +330,27 @@ Editor::_do_import (vector paths, ImportDisposition chns, ImportMode mo } } else { - bool replace; + bool replace = false; for (vector::iterator a = paths.begin(); a != paths.end() && ok; ++a) { - int check = check_whether_and_how_to_import(*a, true); + int check = check_whether_and_how_to_import (*a, true); - if (check == 2 ) { + switch (check) { + case 2: // skip continue; - } - - if (check == 0) { - fatal << "Updating existing sources should be disabled!" << endl; - replace = true; - } else if (check == 1) { + case 0: + fatal << "Updating existing sources should be disabled!" << endmsg; + /* NOTREACHED*/ + break; + case 1: replace = false; + break; + default: + fatal << "Illegal return " << check << " from check_whether_and_how_to_import()!" << endmsg; + /* NOTREACHED*/ } - switch (chns) { case Editing::ImportDistinctFiles: -- cgit v1.2.3