fixing a check
This commit is contained in:
parent
3795e1f2db
commit
c14d1e04b4
|
@ -275,7 +275,7 @@ public class GeoPortalDataEntryApp implements EntryPoint {
|
|||
public void onCreateNewProject(CreateNewProjectEvent newProjectEvent) {
|
||||
|
||||
//means the form was not submitted
|
||||
if(savedMap.size()>0) {
|
||||
if(savedMap.size()==0) {
|
||||
boolean confirm = Window.confirm("Creating a new project, the current project (is not saved) and will be lost, Confirm?");
|
||||
if(confirm)
|
||||
buildNewCards(orderedCards);
|
||||
|
|
Loading…
Reference in New Issue