aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_editor.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2009-01-06 19:36:42 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2009-01-06 19:36:42 +0000
commitf06fe8bef4964656f56975a97b448c1c788e7cf3 (patch)
tree553d06df3e28c41e45e2cdc2c31ff17ad7e0f303 /pd/src/g_editor.c
parente60dbadb4745a209901a7ce30235e75f805ae6a0 (diff)
0.42-2 (bug fixes)
svn path=/trunk/; revision=10477
Diffstat (limited to 'pd/src/g_editor.c')
-rw-r--r--pd/src/g_editor.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index a0125928..0fbce41a 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -1864,8 +1864,7 @@ void glob_verifyquit(void *dummy, t_floatarg f)
return;
}
if (f == 0 && sys_perf)
- sys_vgui("pdtk_check .x%lx {really quit?} {pd quit;\n} yes\n",
- canvas_getrootfor(g2));
+ sys_vgui("pdtk_check . {really quit?} {pd quit;\n} yes\n");
else glob_quit(0);
}
@@ -2363,7 +2362,10 @@ static void canvas_selectall(t_canvas *x)
t_gobj *y;
if (!x->gl_edit)
canvas_editmode(x, 1);
- for (y = x->gl_list; y; y = y->g_next)
+ /* if everyone is already selected deselect everyone */
+ if (!glist_selectionindex(x, 0, 0))
+ glist_noselect(x);
+ else for (y = x->gl_list; y; y = y->g_next)
{
if (!glist_isselected(x, y))
glist_select(x, y);