Skip to content

Commit

Permalink
Fixed when "no more directions to check!" notification is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
tibnor committed May 21, 2015
1 parent d3319ee commit 2d3f0f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
** Call "ant help" to get possible build targets.
**
-->
<project name="kartverketImport" default="dist" basedir=".">
<project name="kartverketimport" default="dist" basedir=".">

<!-- enter the SVN commit message -->
<property name="commit.message" value="Commit message"/>
<property name="commit.message" value="Initial"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="7001"/>
<property name="plugin.version" value="1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public void actionPerformed(ActionEvent e) {
}

private void nextWay() {
boolean isDone = true;

while (waysIterator.hasNext())
{
w = waysIterator.next();
Expand All @@ -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();
}


}

Expand Down

0 comments on commit 2d3f0f5

Please sign in to comment.