Fix breakage to adding multiple files at the same time.
authorCarl Hetherington <cth@carlh.net>
Mon, 2 Dec 2013 23:06:22 +0000 (23:06 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 2 Dec 2013 23:06:22 +0000 (23:06 +0000)
ChangeLog
src/wx/film_editor.cc

index 158ea050308bbcb22e4d2b282cace91fc5a6d060..793d0c8f156e1e78772eadacfbcc1341b3e30d3d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-12-02  Carl Hetherington  <cth@carlh.net>
 
+       * Fix breakage to adding multiple files at the same time.
+
        * Fix crash on double-click of "show audio" button (#278).
 
        * Version 1.40 released.
index bf13620e53bd31b62d099a7f6769e050504e05e6..11926b8a10d7ec9038df4ef2c39ba3068c02b2b7 100644 (file)
@@ -747,7 +747,7 @@ FilmEditor::content_add_file_clicked ()
        /* XXX: check for lots of files here and do something */
 
        for (unsigned int i = 0; i < paths.GetCount(); ++i) {
-               _film->examine_and_add_content (content_factory (_film, wx_to_std (d->GetPath ())));
+               _film->examine_and_add_content (content_factory (_film, wx_to_std (paths[i])));
        }
 
        d->Destroy ();