summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/caja-navigation-window-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caja-navigation-window-pane.c b/src/caja-navigation-window-pane.c
index 05dbf492..b60de7c9 100644
--- a/src/caja-navigation-window-pane.c
+++ b/src/caja-navigation-window-pane.c
@@ -503,7 +503,7 @@ caja_navigation_window_pane_remove_page (CajaNavigationWindowPane *pane, int pag
G_CALLBACK (notebook_switch_page_cb),
pane);
/*catch crash on closing windows in wayland*/
- if (!notebook)
+ if (!(GTK_IS_NOTEBOOK(notebook)))
return;
gtk_notebook_remove_page (notebook, page_num);