1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: Avoid to leave an unclosable window when there is no appointment in

"Appointment List...".
This commit is contained in:
Liang Chang 2021-02-15 01:46:25 +08:00
parent f171814fa4
commit 49b92e63a7

View file

@ -1952,15 +1952,13 @@ show_editor_view(Calendar *c, Glance glance) {
XtFree(ident1);
XtFree(text);
XtFree(title);
XtUnmanageChild(e->view_form);
e->editor_view_is_up = False;
} else {
if (!editor_view_showing(e))
ds_position_popup(c->frame, e->view_frame,
DS_POPUP_LOR);
XtManageChild(e->view_form);
e->editor_view_is_up = True;
}
XtManageChild(e->view_form);
e->editor_view_is_up = True;
/* if (e->frame) XtPopup(e->frame, XtGrabNone); */
if (e->view_frame) XtPopup(e->view_frame, XtGrabNone);
}