Ensure the window-close button is visible for the Engine-Dialog.

This commit is contained in:
Robin Gareus
2016-11-30 18:13:35 +01:00
parent 7cef79fb39
commit 84fc68cf08

View File

@@ -52,6 +52,7 @@
#include "ardour_ui.h"
#include "engine_dialog.h"
#include "gui_thread.h"
#include "ui_config.h"
#include "utils.h"
#include "pbd/i18n.h"
@@ -112,6 +113,12 @@ EngineControl::EngineControl ()
set_name (X_("AudioMIDISetup"));
if (UIConfiguration::instance().get_all_floating_windows_are_dialogs()) {
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
} else {
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
}
/* the backend combo is the one thing that is ALWAYS visible */
vector<const ARDOUR::AudioBackendInfo*> backends = ARDOUR::AudioEngine::instance()->available_backends();