# HG changeset patch # User Raimund Renkert # Date 1316001622 0 # Node ID fe23bbf0ea117f925ed066f9d4914e07d214afe8 # Parent 9acbd3f9826273432ca0d15546d0a380ed3a721e Fixed a problem with renaming collection view title and duplicating projects. flys-client/trunk@2741 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 9acbd3f98262 -r fe23bbf0ea11 flys-client/ChangeLog --- a/flys-client/ChangeLog Wed Sep 14 11:36:06 2011 +0000 +++ b/flys-client/ChangeLog Wed Sep 14 12:00:22 2011 +0000 @@ -1,3 +1,9 @@ +2011-09-14 Raimund Renkert + + * src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java, + src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: + Fixed a problem with renaming collection view title and duplicating projects. + 2011-09-14 Raimund Renkert Issue166 diff -r 9acbd3f98262 -r fe23bbf0ea11 flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Wed Sep 14 11:36:06 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Wed Sep 14 12:00:22 2011 +0000 @@ -82,5 +82,13 @@ CollectionView view = views.get(uuid); view.setTitle(title); } + + + public boolean hasView(String uuid) { + if(views.get(uuid) != null) { + return true; + } + return false; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 9acbd3f98262 -r fe23bbf0ea11 flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 11:36:06 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 12:00:22 2011 +0000 @@ -448,7 +448,9 @@ public void onSuccess(Void v) { updateUserCollections(); - flys.getWorkspace().updateTitle(c.identifier(), c.getName()); + if(flys.getWorkspace().hasView(c.identifier())) { + flys.getWorkspace().updateTitle(c.identifier(), c.getName()); + } } }); }