Skip to content

Commit

Permalink
gui: Utilize getter for 'inside_action' in x_window_close_page()
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed May 21, 2024
1 parent a4eaaa7 commit 88ff67b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libleptongui/src/x_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@ x_window_close_page (GschemToplevel *w_current,

/* If we're closing whilst inside an action, re-wind the
* page contents back to their state before we started */
if (w_current->inside_action) {
if (schematic_window_get_inside_action (w_current))
{
i_callback_cancel (NULL, w_current);
}

Expand Down

0 comments on commit 88ff67b

Please sign in to comment.