aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-02-17 13:50:53 +0100
committerThomas White <taw@physics.org>2023-02-17 13:50:53 +0100
commit43e8cc01dbd715bf3f3728396e8f1904f75cebd3 (patch)
tree1d0165d0416fb712f43b0648bd5328415bf74200 /src
parent47d41f7b12d3b78e83c64bae11b77d23bfa1be5c (diff)
GUI: Complain more loudly about export errors
Diffstat (limited to 'src')
-rw-r--r--src/gui_export.c6
1 files changed, 3 insertions, 3 deletions
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;
}