summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-17 21:12:10 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-17 21:12:10 +0200
commit5408e20d80b87731e90840b5cc983a6717c851a5 (patch)
treeb2ff80efb498b938c7a00d6cc8dd6aa7a510c265 /src/gipfel.cxx
parent71c0affa382b4995e36906e34da648f50bfa7c6f (diff)
copy instead of rename - in case /tmp is another filesystem
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index bcf4816..788d22b 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -118,7 +118,8 @@ void track_cb() {
void save_cb() {
char *file = fl_file_chooser("Save Image As?", NULL, img_file);
if (file)
- gipf->save_image(file);
+ if (gipf->save_image(file))
+ fl_message("ERROR: Saving image %s failed.", file);
}
void focal_length_cb(Fl_Slider* o, void*) {