fix #1497, related to lack of status.done setting when libsndfile craps out on us
git-svn-id: svn://localhost/ardour2/trunk@1528 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0d918f8981
commit
4822a75e4c
|
@ -244,6 +244,8 @@ Editor::import_sndfile (vector<ustring> paths, ImportMode mode, AudioTrack* trac
|
|||
while (!(import_status.done || import_status.cancel)) {
|
||||
gtk_main_iteration ();
|
||||
}
|
||||
|
||||
interthread_progress_window->hide ();
|
||||
|
||||
import_status.done = true;
|
||||
interthread_progress_connection.disconnect ();
|
||||
|
|
|
@ -132,6 +132,8 @@ Session::import_audiofile (import_status& status)
|
|||
|
||||
if ((in = sf_open (status.paths.front().c_str(), SFM_READ, &info)) == 0) {
|
||||
error << string_compose(_("Import: cannot open input sound file \"%1\""), status.paths.front()) << endmsg;
|
||||
status.done = 1;
|
||||
status.cancel = 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user