1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtcm: fix a segfault that occurred when opening the "Appointment List..." in

the "View" menu.
This commit is contained in:
Liang Chang 2021-02-12 18:25:25 +08:00 committed by Jon Trulson
parent 4190143c91
commit e7402803df

View file

@ -1922,6 +1922,12 @@ show_editor_view(Calendar *c, Glance glance) {
Editor *e = (Editor *)c->editor;
Props_pu *p = (Props_pu *)c->properties_pu;
if (get_data_version(c->cal_handle) <= CMS_VERS_2) {
backend_err_msg(c->frame, c->view->current_calendar,
CSA_E_NOT_SUPPORTED, p->xm_error_pixmap);
return;
}
if (!e->view_frame) {
e->cal = c;
e_build_view_popup(e);