summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_audio_import.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-02-15 20:37:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-02-15 20:37:41 +0000
commit6f0f3d70565b908961ab52af66b392cd346501d9 (patch)
tree8dd8e71ee045b7000efe3462f0bc82fd0785cd77 /gtk2_ardour/editor_audio_import.cc
parent73d0395d823eb285963ed2851bcc5af9da21dcd6 (diff)
fix use of basename; AU automation now working; add gtk event reporter back into SAE bundle; fix up carbon menu handler so that it never causes a nested gtk main loop problem
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3062 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r--gtk2_ardour/editor_audio_import.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc
index fa14e2b88f..199eaac489 100644
--- a/gtk2_ardour/editor_audio_import.cc
+++ b/gtk2_ardour/editor_audio_import.cc
@@ -196,7 +196,7 @@ typedef std::map<PBD::ID,boost::shared_ptr<AudioSource> > AudioSourceList;
int
Editor::check_whether_and_how_to_import(string path, bool all_or_nothing)
{
- string wave_name (basename(path.c_str()));
+ string wave_name (Glib::path_get_basename(path));
AudioSourceList all_sources = session->get_audio_sources();
bool wave_name_exists = false;
@@ -204,7 +204,7 @@ Editor::check_whether_and_how_to_import(string path, bool all_or_nothing)
for (AudioSourceList::iterator i = all_sources.begin(); i != all_sources.end(); ++i) {
boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource>(i->second);
- string tmp (basename(afs->path().c_str()));
+ string tmp (Glib::path_get_basename (afs->path()));
if (tmp == wave_name) {
wave_name_exists = true;