Browse Source

Fix DSSI UIs closing prematurely

gh-pages
falkTX 9 years ago
parent
commit
dc9b23badb
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      distrho/src/DistrhoUIDSSI.cpp

+ 9
- 0
distrho/src/DistrhoUIDSSI.cpp View File

@@ -95,6 +95,7 @@ public:
UIDssi(const OscData& oscData, const char* const uiTitle)
: fUI(this, 0, nullptr, setParameterCallback, setStateCallback, sendNoteCallback, setSizeCallback),
fHostClosed(false),
fShowCalled(false),
fOscData(oscData)
{
fUI.setTitle(uiTitle);
@@ -113,6 +114,12 @@ public:
fOscData.idle();

if (! fUI.idle())
{
// host might not have called show yet
if (fShowCalled)
break;
}
else if (fHostClosed)
break;

d_msleep(30);
@@ -142,6 +149,7 @@ public:

void dssiui_show()
{
fShowCalled = true;
fUI.setVisible(true);
}

@@ -196,6 +204,7 @@ protected:
private:
UIExporter fUI;
bool fHostClosed;
bool fShowCalled;

const OscData& fOscData;



Loading…
Cancel
Save