We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 172503f commit c832093Copy full SHA for c832093
src/corelib/business_layer/model/abstract_model.cpp
@@ -281,6 +281,15 @@ bool AbstractModel::isRedoInProcess() const
281
bool AbstractModel::mergeDocumentChanges(const QByteArray _content,
282
const QVector<QByteArray>& _patches)
283
{
284
+ //
285
+ // Если в документе на данный момент нет содержимого, то сформируем болванку, для
286
+ // дальнейшего сохранения изменений она должна быть
287
288
+ if (document()->content().isEmpty()) {
289
+ reassignContent();
290
+ }
291
+
292
293
if (_content.isEmpty() && _patches.isEmpty()) {
294
return false;
295
}
0 commit comments