summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-11 15:58:51 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-11 15:58:51 -0400
commit57262331c1d6d512a50a999782054cca97ed715a (patch)
tree88c25ed280322cbb1d6ee7dc6081cc2a4aea7c5a /gtk2_ardour
parenta0b975186686b2be4e609a70f12f81073b4784de (diff)
don't use a possibly non-existent window as a transient parent when showing a dialog about engine failure
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 3cbdfba019..2da5de6936 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3807,8 +3807,13 @@ int
ARDOUR_UI::reconnect_to_engine ()
{
if (AudioEngine::instance()->start ()) {
- MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
- msg.run ();
+ if (editor) {
+ MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
+ msg.run ();
+ } else {
+ MessageDialog msg (_("Could not reconnect to the Audio/MIDI engine"));
+ msg.run ();
+ }
return -1;
}