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

#9301 Tabs close check fixed


Former-commit-id: f6922503
上级 bf881abc
...@@ -2014,7 +2014,7 @@ public class SQLEditor extends SQLEditorBase implements ...@@ -2014,7 +2014,7 @@ public class SQLEditor extends SQLEditorBase implements
} }
} }
if (tabsToClose.size() > 1) { if (tabsToClose.size() > 0) {
int confirmResult = IDialogConstants.YES_ID; int confirmResult = IDialogConstants.YES_ID;
if (confirmClose) { if (confirmClose) {
confirmResult = ConfirmationDialog.showConfirmDialog( confirmResult = ConfirmationDialog.showConfirmDialog(
...@@ -2034,7 +2034,8 @@ public class SQLEditor extends SQLEditorBase implements ...@@ -2034,7 +2034,8 @@ public class SQLEditor extends SQLEditorBase implements
} }
return confirmResult; return confirmResult;
} }
return IDialogConstants.NO_ID; // No need to close anything
return IDialogConstants.IGNORE_ID;
} }
public boolean transformQueryWithParameters(SQLQuery query) { public boolean transformQueryWithParameters(SQLQuery query) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册