diff --git a/src/document.c b/src/document.c index 5343bac0..948a6c70 100644 --- a/src/document.c +++ b/src/document.c @@ -1655,6 +1655,7 @@ gboolean document_save_file_as(GeanyDocument *doc, const gchar *utf8_fname) if (new_file) { + // assume user wants to throw away read-only setting sci_set_readonly(doc->editor->sci, FALSE); doc->readonly = FALSE; if (doc->priv->protected > 0) diff --git a/src/documentprivate.h b/src/documentprivate.h index 29f8d755..4f5d4e38 100644 --- a/src/documentprivate.h +++ b/src/documentprivate.h @@ -93,7 +93,7 @@ typedef struct GeanyDocumentPrivate time_t mtime; /* ID of the idle callback updating the tag list */ guint tag_list_update_source; - /* Whether it's temoporarily protected (read-only and saving is prevented). Does + /* Whether it's temporarily protected (read-only and saving needs confirmation). Does * not imply doc->readonly as writable files can be protected */ gint protected; /* Save pointer to info bars allowing to cancel them programatically (to avoid multiple ones) */