Skip to content

Commit

Permalink
Resolved GUI bug occurring when deleting a text resource
Browse files Browse the repository at this point in the history
  • Loading branch information
rensink committed Dec 4, 2024
1 parent d992b74 commit c51466b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/nl/utwente/groove/gui/display/TextTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ ChangeListener createDirtyListener() {
return new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
updateDirty();
// possibly the resource has been disposed, in which case we shouldn't do anything
if (getResource() != null) {
updateDirty();
}
}
};
}
Expand Down

0 comments on commit c51466b

Please sign in to comment.