Skip to content

Commit

Permalink
Bugfix: Navigation after closing a project
Browse files Browse the repository at this point in the history
  • Loading branch information
witek committed Aug 4, 2015
1 parent 830172a commit 42b0167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/scrum/client/ScrumScopeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ public static void createProjectScope(Project project) {

public static void destroyProjectScope() {
Scope.get().getComponent(Ui.class).lock("Closing project...");
Scope.get().removeComponent("project");
new CloseProjectServiceCall().execute();
ScrumGwtApplication.get().abort("Project closed");
// ScrumGwtApplication.get().abort("Project closed");
projectScope = null;
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/java/scrum/client/workspace/Navigator.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2011 Witoslaw Koczewsi <[email protected]>, Artjom Kochtchi
*
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
*
* You should have received a copy of the GNU General Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -115,7 +115,8 @@ private void showProject(String projectId, String page, String entityId) {
// currently other project selected

ScrumScopeManager.destroyProjectScope();
History.newItem(createToken(projectId, page, entityId), true);
showProject(projectId, page, entityId);
// History.newItem(createToken(projectId, page, entityId), true);
return;
}

Expand Down

0 comments on commit 42b0167

Please sign in to comment.