Browse Source

Prevent UIs from being shown twice (fixes ardour double window)

tags/1.9.4
falkTX 12 years ago
parent
commit
4a9c6d5dbe
3 changed files with 8 additions and 2 deletions
  1. +3
    -0
      source/backend/engine/CarlaEngineNative.cpp
  2. +3
    -0
      source/modules/CarlaNativeExtUI.hpp
  3. +2
    -2
      source/modules/native-plugins/zynaddsubfx-synth.cpp

+ 3
- 0
source/backend/engine/CarlaEngineNative.cpp View File

@@ -1181,6 +1181,9 @@ protected:
{
if (show)
{
if (fUiServer.isOk())
return;

CarlaString path(pHost->resourceDir);
path += "/carla-plugin";



+ 3
- 0
source/modules/CarlaNativeExtUI.hpp View File

@@ -51,6 +51,9 @@ protected:
{
if (show)
{
if (isOk())
return;

CarlaString path(getResourceDir() + fExtUiPath);
carla_stdout("Trying to start UI using \"%s\"", path.buffer());



+ 2
- 2
source/modules/native-plugins/zynaddsubfx-synth.cpp View File

@@ -447,8 +447,6 @@ protected:
Fl_Theme::set("Cairo");
}

CARLA_ASSERT(fUi == nullptr);

if (fUi == nullptr)
{
fUiClosed = 0;
@@ -456,6 +454,8 @@ protected:
fUi->masterwindow->label(kHost->uiName);
fUi->showUI();
}
else
fUi->showUI();
}
else if (fNextUiAction == 0) // close
{


Loading…
Cancel
Save