A bug was fixed - deleting activity deleted this activity only from database, but not GUI, where it was only hidden and appear again in case, some of the remaining activities for the given day was updated
This commit is contained in:
parent
e56d16283e
commit
0d2b89750a
@ -221,7 +221,7 @@ public class ActivityPanel extends JPanel implements Comparable<ActivityPanel> {
|
||||
// //dayPanel.moveMarkedActivityBeforeThisActivity(getActivity());
|
||||
// });
|
||||
deleteButton.addActionListener(e -> {
|
||||
boolean deleted = activityRepository.delete(this.activity.getId());
|
||||
this.deleted = activityRepository.delete(this.activity.getId());
|
||||
if(deleted) {
|
||||
this.setVisible(false);
|
||||
deleted = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user