diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-19 15:26:14 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-19 15:26:14 +0000 |
commit | 82031d05e0f2f4500535a6e35cdc5199b0b2d3a0 (patch) | |
tree | 350624e334633d258171ffcbe20d802c558ee105 /gtk2_ardour/editor_audio_import.cc | |
parent | 00c57fc3905c636292fbb4241f7fa204dbae8f3f (diff) |
reset editor's entered_track to null if that track is deleted; fix use of wrong constructor for MessageDialog in both IOSelector and import handling, which would lead to a glibmm exception caused by a null C string (old, common and very very bad)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3483 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r-- | gtk2_ardour/editor_audio_import.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 35d5dcd2ca..3d75de782c 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -70,7 +70,7 @@ void Editor::add_external_audio_action (ImportMode mode_hint) { if (session == 0) { - MessageDialog msg (0, _("You can't import or embed an audiofile until you have a session loaded.")); + MessageDialog msg (_("You can't import or embed an audiofile until you have a session loaded.")); msg.run (); return; } @@ -91,7 +91,7 @@ Editor::external_audio_dialog () uint32_t track_cnt; if (session == 0) { - MessageDialog msg (0, _("You can't import or embed an audiofile until you have a session loaded.")); + MessageDialog msg (_("You can't import or embed an audiofile until you have a session loaded.")); msg.run (); return; } |