Kaydet (Commit) 89215d5c authored tarafından Enrico Tröger's avatar Enrico Tröger

When opening session files, don't try to set document properties if the document can't be opened.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2311 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst c8d99c4b
...@@ -855,10 +855,14 @@ gboolean configuration_open_files(void) ...@@ -855,10 +855,14 @@ gboolean configuration_open_files(void)
-1, locale_filename, pos, ro, ft, -1, locale_filename, pos, ro, ft,
(enc_idx >= 0 && enc_idx < GEANY_ENCODINGS_MAX) ? (enc_idx >= 0 && enc_idx < GEANY_ENCODINGS_MAX) ?
encodings[enc_idx].charset : NULL); encodings[enc_idx].charset : NULL);
document_set_use_tabs(new_idx, use_tabs);
doc_list[new_idx].auto_indent = auto_indent; if (DOC_IDX_VALID(new_idx))
document_set_line_wrapping(new_idx, line_wrapping); {
ret = TRUE; document_set_use_tabs(new_idx, use_tabs);
document_set_line_wrapping(new_idx, line_wrapping);
doc_list[new_idx].auto_indent = auto_indent;
ret = TRUE;
}
} }
else else
{ {
......
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