浏览代码

Flip logic for deciding which model changes indicate unsaved status.

To be more robust, detect that only RESETM and SYSOUT changes
do not make the model 'dirty' (unsaved).
bentleyjoakes 5 年之前
父节点
当前提交
de8916acd2
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      client/query_response.js

+ 3 - 5
client/query_response.js

@@ -90,13 +90,11 @@ function __handleChangelog(changelog,seqNum,hitchhiker)
 				__changed(step['id'],true);
 			}
 
-			// record the changes that mark the model as unsaved
+			// record the changes that do not mark the model as unsaved
 			// (as well, note that SYSOUT can change the model through
 			// the back-door API 'CLIENT_BDAPI')
-			let dirty_ops = ['MKEDGE', 'RMEDGE',
-				'MKNODE', 'RMNODE', 'CHATTR',
-				'LOADMM', 'LOADASMM', 'DUMPMM'];
-			if (dirty_ops.includes(step['op'])){
+			let clean_ops = ['RESETM', 'SYSOUT'];
+			if (!clean_ops.includes(step['op'])){
 				WindowManagement.setWindowTitle(true);
 			}