diff options
author | falkTX <falktx@gmail.com> | 2014-08-16 23:03:44 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2014-08-16 23:03:44 +0100 |
commit | 3464cfdbe670417664d99be006022649cfac85e0 (patch) | |
tree | 5c485e920d982895cfe999fd03642c89fe413fa8 /distrho/src/DistrhoUIDSSI.cpp | |
parent | f23edf167d5e78db5797ffc9d5a5afaa528d6ece (diff) |
Revert DSSI UI auto-close fix, no longer needed
Diffstat (limited to 'distrho/src/DistrhoUIDSSI.cpp')
-rw-r--r-- | distrho/src/DistrhoUIDSSI.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/distrho/src/DistrhoUIDSSI.cpp b/distrho/src/DistrhoUIDSSI.cpp index 858cdb38..389af9f3 100644 --- a/distrho/src/DistrhoUIDSSI.cpp +++ b/distrho/src/DistrhoUIDSSI.cpp @@ -95,7 +95,6 @@ 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,13 +112,7 @@ public: { fOscData.idle(); - if (! fUI.idle()) - { - // host might not have called show yet - if (fShowCalled) - break; - } - else if (fHostClosed) + if (fHostClosed || ! fUI.idle()) break; d_msleep(30); @@ -149,7 +142,6 @@ public: void dssiui_show() { - fShowCalled = true; fUI.setVisible(true); } @@ -204,7 +196,6 @@ protected: private: UIExporter fUI; bool fHostClosed; - bool fShowCalled; const OscData& fOscData; |