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:
parent
7813f8a207
commit
bf8b2fbe94
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue