summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-10-20 21:31:54 +0000
committerBen Loftis <ben@glw.com>2009-10-20 21:31:54 +0000
commit114b5114134cf6e8b4422ea9ee46b231cda29ef0 (patch)
tree9a9ff7936ae322bae75755ccfd74a697446f5a34 /gtk2_ardour
parent933bf42a993b090d4bd4f4f339d24451033e6f07 (diff)
store the count of imported files in the import_status record, and initialize it before the import loop, so the count works correctly
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5827 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_audio_import.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc
index 902093b342..9476dc836c 100644
--- a/gtk2_ardour/editor_audio_import.cc
+++ b/gtk2_ardour/editor_audio_import.cc
@@ -284,6 +284,9 @@ Editor::get_nth_selected_audio_track (int nth) const
void
Editor::do_import (vector<ustring> paths, ImportDisposition chns, ImportMode mode, SrcQuality quality, nframes64_t& pos)
{
+ //this is where an import "starts" so initialize the count here ... the rest gets initialized in import_sndfiles()
+ import_status.count = 0;
+
boost::shared_ptr<AudioTrack> track;
vector<ustring> to_import;
int nth = 0;