提交 26a1a2b6 编写于 作者: S serge-rider

#8400 Data changes loss confirmation fix


Former-commit-id: 59cb086c
上级 fc0a746c
......@@ -2315,7 +2315,7 @@ public class SQLEditor extends SQLEditorBase implements
if (getActivePreferenceStore().getBoolean(SQLPreferenceConstants.AUTO_SAVE_ON_CLOSE)) {
return ISaveablePart2.YES;
}
return ISaveablePart2.DEFAULT;
return ISaveablePart2.NO;
}
protected void afterSaveToFile(File saveFile) {
......
......@@ -91,8 +91,7 @@ public class SaveChangesHandler extends AbstractHandler
int choice = -1;
if (saveable instanceof ISaveablePart2) {
choice = ((ISaveablePart2) saveable).promptToSaveOnClose();
}
if (!saveable.isDirty()) {
} else if (!saveable.isDirty()) {
// Actual save could be performed in promptToSaveOnClose (e.g. transaction commit)
result = true;
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册