Kaydet (Commit) e69bbe25 authored tarafından Nick Treleaven's avatar Nick Treleaven

Merge pull request #342 from ntrel/save-disk-check

Force disk check before save to prevent accidental overwriting
......@@ -1937,10 +1937,9 @@ gboolean document_save_file(GeanyDocument *doc, gboolean force)
_("Cannot save read-only document '%s'!"), DOC_FILENAME(doc));
return FALSE;
}
document_check_disk_status(doc, TRUE);
if (doc->priv->protected)
{
return save_file_handle_infobars(doc, force);
}
fp = project_get_file_prefs();
/* replaces tabs with spaces but only if the current file is not a Makefile */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment