From 114b5114134cf6e8b4422ea9ee46b231cda29ef0 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 20 Oct 2009 21:31:54 +0000 Subject: 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 --- gtk2_ardour/editor_audio_import.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk2_ardour') 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 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 track; vector to_import; int nth = 0; -- cgit v1.2.3