Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 837fab ... vs e3c426 ... for ruralHouses/src/gui/listOfAdditionRequestsGUI.java

Diff revisions: vs.
  @@ -90,10 +90,10 @@
90 90 RuralHouse rh = houses.get(table.getSelectedRow());
91 91 //TODO when the house is not added show a warning to the user. Method below returns a boolean stating that.
92 92 hm.registerNewHouse(rh);
93 - houses.remove(rh);
94 93 am.removeHouseAdditionRequests(rh);
95 94 Administrator.saveInstance();
96 95 ((DefaultTableModel)table.getModel()).removeRow(houses.indexOf(rh));
96 + houses.remove(rh);
97 97 }
98 98 }
99 99 });