Browse Source

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 years ago
parent
commit
de8916acd2
1 changed files with 3 additions and 5 deletions
  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);
 				__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
 			// (as well, note that SYSOUT can change the model through
 			// the back-door API 'CLIENT_BDAPI')
 			// 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);
 				WindowManagement.setWindowTitle(true);
 			}
 			}