1
1

* editcmd.c (edit_quit_cmd): Don't use strcmp on the result of

gtk_dialog_cauldron() since it's NULL if the dialog has been
closed without using buttons.
Этот коммит содержится в:
Pavel Roskin 2001-06-15 07:35:59 +00:00
родитель 683d7f0960
Коммит e81a25e50f
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,5 +1,9 @@
2001-06-15 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
gtk_dialog_cauldron() since it's NULL if the dialog has been
closed without using buttons.
* edit.c (edit_execute_cmd): Put time format to a variable to
avoid gcc warning about Y2K issues with %c in strftime().

Просмотреть файл

@ -2416,12 +2416,12 @@ void edit_quit_cmd (WEdit * edit)
char *r;
r = gtk_dialog_cauldron (_ (" Quit "), GTK_CAULDRON_TOPLEVEL | GTK_CAULDRON_GRAB, " [ ( %Lxf )xf ]xf / ( %Bgxfq || %Bgxfq || %Bgxfq ) ",
_ (" Current text was modified without a file save. \n Save with exit? "), GNOME_STOCK_BUTTON_CANCEL, GNOME_STOCK_BUTTON_YES, GNOME_STOCK_BUTTON_NO);
if (!strcmp (r, GNOME_STOCK_BUTTON_YES)) {
if (r == GNOME_STOCK_BUTTON_YES) {
edit_push_markers (edit);
edit_set_markers (edit, 0, 0, 0, 0);
if (!edit_save_cmd (edit))
return;
} else if (!strcmp (r, GNOME_STOCK_BUTTON_NO)) {
} else if (r == GNOME_STOCK_BUTTON_NO) {
if (edit->delete_file)
unlink (catstrs (edit->dir, edit->filename, 0));
} else {