提交 b7b26580 编写于 作者: S Serge Rider

#1275 SQL editor: extra tabs switcher fix

上级 be5b466d
......@@ -631,9 +631,14 @@ public class SQLEditor extends SQLEditorBase implements
private void showExtraView(final ToolItem toolItem, String name, String toolTip, Image image, Control view) {
for (CTabItem item : resultTabs.getItems()) {
if (item.getData() == view) {
item.dispose();
toolItem.setSelection(false);
return;
if (resultTabs.getSelection() == item) {
item.dispose();
toolItem.setSelection(false);
return;
} else {
resultTabs.setSelection(item);
return;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册