From 43e8cc01dbd715bf3f3728396e8f1904f75cebd3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 17 Feb 2023 13:50:53 +0100 Subject: GUI: Complain more loudly about export errors --- src/gui_export.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gui_export.c b/src/gui_export.c index a5dffb9a..6368383f 100644 --- a/src/gui_export.c +++ b/src/gui_export.c @@ -151,19 +151,19 @@ static int export_data(struct export_window *win, char *filename) dataset = gtk_combo_box_get_active_id(GTK_COMBO_BOX(win->dataset)); if ( dataset == NULL ) { - ERROR("Please select the dataset to export.\n"); + error_box(win->proj, "Please select the dataset to export.\n"); return 1; } format = gtk_combo_box_get_active_id(GTK_COMBO_BOX(win->format)); if ( format == NULL ) { - ERROR("Please select the data format to use.\n"); + error_box(win->proj, "Please select the data format to use.\n"); return 1; } cell_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(win->cell_chooser)); if ( cell_filename == NULL ) { - ERROR("Please choose the unit cell file.\n"); + error_box(win->proj, "Please choose the unit cell file.\n"); return 1; } -- cgit v1.2.3