Skip to content

Commit

Permalink
fix gtk crash on module instance delete
Browse files Browse the repository at this point in the history
If the currently focused module instance is being deleted, gtk crashes
on `gtk_widget_grab_focus()`.
  • Loading branch information
zisoft authored and TurboGit committed Dec 29, 2024
1 parent 59fbb69 commit 8855ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/develop/imageop.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ static void _gui_delete_callback(GtkButton *button, dt_iop_module_t *module)
// we remove the plugin effectively
if(!dt_iop_is_hidden(module))
{
dt_iop_gui_cleanup_module(module);
gtk_widget_grab_focus(dt_ui_center(darktable.gui->ui));
dt_iop_gui_cleanup_module(module);
}

// we remove all references in the history stack and dev->iop
Expand Down

0 comments on commit 8855ec9

Please sign in to comment.