Only set encoding settings (post open) for documents with a path

This commit is contained in:
Allan Odgaard
2014-10-06 20:25:20 +02:00
parent 26dfefc7d5
commit 6928505062

View File

@@ -657,9 +657,8 @@ namespace document
return;
}
_disk_encoding = encoding.charset();
_disk_newlines = encoding.newlines();
_disk_bom = encoding.byte_order_mark();
if(path != NULL_STR)
set_disk_encoding(encoding);
if(_file_type == NULL_STR)
_file_type = fileType;