Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 36532fc

Browse files
committed
Monitor row deletions
1 parent fc793d9 commit 36532fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/sholl/gui/EnhancedResultsTable.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ public synchronized void incrementCounter() {
5757
setUnsavedMeasurements(true);
5858
}
5959

60+
/**
61+
* Deletes the specified row and setting the unsaved measurements flag.
62+
*/
63+
@Override
64+
public synchronized void deleteRow(final int row) {
65+
super.deleteRow(row);
66+
setUnsavedMeasurements(true);
67+
}
68+
6069
/**
6170
* Calls the default {@code show()} method while attaching a WindowListener
6271
* used to prompt users to save unsaved measurements when closing

0 commit comments

Comments
 (0)