"git@transfer.hft-stuttgart.de:zedflow/test-k1.git" did not exist on "a64c791c88dbc6f13f36b3dbbe6b4a18a7b0d08c"
Commit ab2bb34f authored by Riegel's avatar Riegel
Browse files

Add resetting of search on clicking showWorldBtn

parent 596ded22
...@@ -906,6 +906,7 @@ public class CityDoctorController { ...@@ -906,6 +906,7 @@ public class CityDoctorController {
public void showWorld() { public void showWorld() {
if (model != null) { if (model != null) {
renderer.render(model); renderer.render(model);
resetSearch(mainWindow.getSelectedTab());
} }
} }
......
...@@ -162,6 +162,7 @@ public class MainToolBar { ...@@ -162,6 +162,7 @@ public class MainToolBar {
content.getSelectionModel().clearSelection(); content.getSelectionModel().clearSelection();
} }
controller.showWorld(); controller.showWorld();
mainWindow.resetSearchBar();
}); });
showWorldBtn.setTooltip(new Tooltip(Localization.getText("MainToolBar.showWorld"))); showWorldBtn.setTooltip(new Tooltip(Localization.getText("MainToolBar.showWorld")));
} }
......
...@@ -1206,5 +1206,4 @@ public class Renderer { ...@@ -1206,5 +1206,4 @@ public class Renderer {
errorUpdater = null; errorUpdater = null;
refresher = null; refresher = null;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment