Add comment about throwing away read-only for renamed documents
This commit is contained in:
parent
88a36268ef
commit
4ceb9fb1f2
@ -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)
|
||||
|
@ -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) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user