mirror of https://github.com/GNOME/gimp.git
app: Fix dock remove condition
Fix dock remove condition in gimp_dock_columns_dock_book_removed(). Due to GimpPanedBox the parent of a dock is not fixed, so just check for != NULL.
This commit is contained in:
parent
35096957a9
commit
ee1f0a8b00
|
@ -275,7 +275,7 @@ gimp_dock_columns_dock_book_removed (GimpDockColumns *dock_columns,
|
|||
|
||||
if (gimp_dock_get_dockbooks (dock) == NULL &&
|
||||
! GIMP_IS_TOOLBOX (dock) &&
|
||||
gtk_widget_get_parent (GTK_WIDGET (dock)) == GTK_WIDGET (dock_columns))
|
||||
gtk_widget_get_parent (GTK_WIDGET (dock)) != NULL)
|
||||
gimp_dock_columns_remove_dock (dock_columns, dock);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue