diff --git a/build.xml b/build.xml index fea8191..84df2cb 100644 --- a/build.xml +++ b/build.xml @@ -11,10 +11,10 @@ ** Call "ant help" to get possible build targets. ** --> - + - + diff --git a/src/org/openstreetmap/josm/plugins/kartverket/actions/CheckDirectionAction.java b/src/org/openstreetmap/josm/plugins/kartverket/actions/CheckDirectionAction.java index 1ba27d7..059ad60 100644 --- a/src/org/openstreetmap/josm/plugins/kartverket/actions/CheckDirectionAction.java +++ b/src/org/openstreetmap/josm/plugins/kartverket/actions/CheckDirectionAction.java @@ -58,6 +58,8 @@ public void actionPerformed(ActionEvent e) { } private void nextWay() { + boolean isDone = true; + while (waysIterator.hasNext()) { w = waysIterator.next(); @@ -70,11 +72,15 @@ private void nextWay() { Main.map.mapView.zoomTo(boundingVisitor); CheckDirectionDialog dialog = new CheckDirectionDialog(this,nWaysCompleted/(1.*nWaysFixme)); dialog.makeVisible(); + isDone = false; break; } } - Notification note = new Notification(tr("No more directions to check!")); - note.show(); + if (isDone) { + Notification note = new Notification(tr("No more directions to check!")); + note.show(); + } + }