diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2009-05-02 20:26:11 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2009-05-02 20:26:11 +0000 |
commit | 7e48118bf16702dc174875510b935f37290d56a7 (patch) | |
tree | 177e5c3e772a399eac11129ac4c16e42ed120427 /libs/ardour/audio_region_importer.cc | |
parent | c7733b443ac6174f3dc795a4c89f4c2c59d1d90e (diff) |
* Fix tooltips in the session import dialog
* Fix arval to run from all directories
git-svn-id: svn://localhost/ardour2/branches/3.0@5028 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_region_importer.cc')
-rw-r--r-- | libs/ardour/audio_region_importer.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libs/ardour/audio_region_importer.cc b/libs/ardour/audio_region_importer.cc index bea61d81e3..90fc7bac4d 100644 --- a/libs/ardour/audio_region_importer.cc +++ b/libs/ardour/audio_region_importer.cc @@ -336,23 +336,22 @@ AudioRegionImporter::prepare_sources () return; } - Session::ImportStatus status; + status.total = 0; + status.replace_existing_source = false; + status.done = false; + status.cancel = false; + status.freeze = false; + status.progress = 0.0; + status.quality = SrcBest; // TODO other qualities also // Get sources that still need to be imported for (std::list<string>::iterator it = filenames.begin(); it != filenames.end(); ++it) { if (!handler.check_source (*it)) { status.paths.push_back (*it); + status.total++; } } - // Prepare rest of import struct TODO quality - status.replace_existing_source = false; - status.done = false; - status.cancel = false; - status.freeze = false; - status.progress = 0.0; - status.quality = SrcBest; - // import files // TODO: threading & exception handling session.import_audiofiles (status); |