Revert "Bug #1592: Fix problem not showing the tab if it is already being shown"

This reverts commit 8c6fb028e6.

It causes a NPE when adding tasks to a project just after create a project.
This commit is contained in:
Manuel Rego Casasnovas 2012-12-11 15:59:45 +01:00
parent 7813f8a207
commit bf8b2fbe94

View file

@ -133,20 +133,20 @@ public class TabOnModeType implements ITab {
@Override
public void show() {
beingShown = true;
ITab currentTab = getCurrentTab();
if (currentTab != null && !beingShown) {
if (currentTab != null) {
currentTab.show();
}
beingShown = true;
}
@Override
public void showWithoutAfterCreate() {
beingShown = true;
ITab currentTab = getCurrentTab();
if (currentTab != null && !beingShown) {
if (currentTab != null) {
currentTab.showWithoutAfterCreate();
}
beingShown = true;
}
}