Skip to content

Commit

Permalink
Merge pull request #342 from ntrel/save-disk-check
Browse files Browse the repository at this point in the history
Force disk check before save to prevent accidental overwriting
  • Loading branch information
ntrel committed Oct 6, 2014
2 parents fa20ec4 + 541cb8d commit e69bbe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/document.c
Expand Up @@ -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 */
Expand Down

0 comments on commit e69bbe2

Please sign in to comment.