Fix region/track naming on MIDI import (remove ugly/unnecessary %a %b etc suffix).
[ardour.git] / gtk2_ardour / ardour_dialog.cc
index 795b924075deb01e511ed7fbc64e8abd72ecf572..bc24389948cfb993118a1fa082ed1cbfb9636f1a 100644 (file)
@@ -24,7 +24,7 @@
 #include "ardour_dialog.h"
 #include "keyboard.h"
 #include "ardour_ui.h"
-
+#include "splash.h"
 
 ArdourDialog::ArdourDialog (string title, bool modal, bool use_seperator)
        : Dialog (title, modal, use_seperator)
@@ -66,3 +66,17 @@ ArdourDialog::on_unmap ()
 {
        Dialog::on_unmap ();
 }
+
+void
+ArdourDialog::on_show ()
+{
+       // never allow the splash screen to obscure any dialog
+
+       Splash* spl = Splash::instance();
+
+       if (spl) {
+               spl->pop_back ();
+       }
+
+       Dialog::on_show ();
+}