summaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index d21b1fc..1ca2c2f 100644
--- a/src/io.c
+++ b/src/io.c
@@ -586,8 +586,12 @@ int io_save_cal(enum save_display display)
if (read_only)
return IO_SAVE_CANCEL;
- if (new_data() && (ret = resolve_save_conflict()))
- return ret;
+ if (new_data()) {
+ if ((ret = resolve_save_conflict()))
+ return ret;
+ } else
+ if (!io_get_modified())
+ return IO_SAVE_CANCEL;
run_hook("pre-save");
io_mutex_lock();