repair gui close behavior
authorGood Guy <good1.2guy@gmail.com>
Mon, 11 Jun 2018 00:11:59 +0000 (18:11 -0600)
committerGood Guy <good1.2guy@gmail.com>
Mon, 11 Jun 2018 00:11:59 +0000 (18:11 -0600)
cinelerra-5.1/cinelerra/pluginlv2ui.C

index b8f99ab1318d1ada59f5a20cfbdc4c91adbd1702..03e656d7cb39d4523c9d4c949a8aad9c6e4e45ae 100644 (file)
@@ -256,8 +256,11 @@ int PluginLV2ChildUI::run_ui()
                if( hidden < 0 ) {
                        gui->top_level = 0;
                        reset_gui();
-                       done = -1;
-                       break;
+                       if( !is_forked() ) {
+                               done = -1;
+                               break;
+                       }
+                       hidden = 1;
                }
                if( updates ) {
                        if( (updates & UPDATE_PORTS) )