Commit 62edc81a authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix regression with dialog windows refusing to close

parent 673407ab
...@@ -754,7 +754,7 @@ function add_events(name) { ...@@ -754,7 +754,7 @@ function add_events(name) {
//pdgui.pdsend(name + " menuclose 0"); //pdgui.pdsend(name + " menuclose 0");
//cancel(); //cancel();
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); gui.Window.get().close(true);
}); });
pdgui.dialog_bindings(name); pdgui.dialog_bindings(name);
} }
......
...@@ -186,7 +186,7 @@ function add_events(name) { ...@@ -186,7 +186,7 @@ function add_events(name) {
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); gui.Window.get().close(true);
}); });
pdgui.dialog_bindings(name); pdgui.dialog_bindings(name);
} }
......
...@@ -275,7 +275,7 @@ function add_events(name) { ...@@ -275,7 +275,7 @@ function add_events(name) {
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); gui.Window.get().close(true);
}); });
pdgui.dialog_bindings(name); pdgui.dialog_bindings(name);
} }
......
...@@ -559,7 +559,7 @@ function add_events(name) { ...@@ -559,7 +559,7 @@ function add_events(name) {
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); gui.Window.get().close(true);
}); });
pdgui.dialog_bindings(name); pdgui.dialog_bindings(name);
} }
......
...@@ -634,7 +634,7 @@ function add_events(name) { ...@@ -634,7 +634,7 @@ function add_events(name) {
gui.Window.get().on("close", function() { gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does // this needs to do whatever the "cancel" button does
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); gui.Window.get().close(true);
}); });
pdgui.dialog_bindings(name); pdgui.dialog_bindings(name);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment