Commit 154faa00 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed confirming saving changes on an abstraction hidden inside another patch...

fixed confirming saving changes on an abstraction hidden inside another patch (currently invisible) whose prompting failed...
parent 94a61d10
......@@ -875,7 +875,11 @@ void glist_menu_open(t_glist *x)
/* redraw ourself in parent window (blanked out this time) */
gobj_vis(&x->gl_gobj, gl2, 1);
}
}
} else {
if (x->gl_editor)
canvas_destroy_editor(x);
x->gl_havewindow = 1;
}
canvas_vis(x, 1);
}
......@@ -987,7 +991,7 @@ void canvas_deletelinesfor(t_canvas *x, t_text *text)
{
if (t.tr_ob == text || t.tr_ob2 == text)
{
if (x->gl_editor)
if (x->gl_editor && glist_isvisible(glist_getcanvas(x)))
{
sys_vgui(".x%lx.c delete l%lx\n",
glist_getcanvas(x), oc);
......
......@@ -3455,7 +3455,14 @@ void canvas_menuclose(t_canvas *x, t_floatarg fforce)
g = glist_finddirty(x);
if (g)
{
vmess(&g->gl_pd, gensym("menu-open"), "");
if (!glist_istoplevel(g) && g->gl_env) {
/* if this is an abstraction */
vmess(&g->gl_pd, gensym("menu-open"), "");
} else {
/* is this even necessary? */
canvas_vis(g, 1);
}
//vmess(&g->gl_pd, gensym("menu-open"), "");
if (!glist_istoplevel(g) && g->gl_env) {
/* if this is an abstraction */
sys_vgui("pdtk_canvas_menuclose .x%lx {.x%lx menuclose 2;}\n",
......
Markdown is supported
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