mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-07-07 19:39:49 +00:00
shell: Fix critical on startup
Only destroy the popup if it exists. Fixes a critial warning on startup:
Gtk-CRITICAL **: 22:18:32.672: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
Fixes regression added in commit 2bfe441dc5
.
This commit is contained in:
parent
520717e133
commit
6afe1b98e3
|
@ -192,7 +192,8 @@ max_zoom_changed_cb (EvDocumentModel *model,
|
|||
EvZoomActionPrivate *priv = GET_PRIVATE (zoom_action);
|
||||
|
||||
g_menu_remove_all (G_MENU (priv->zoom_free_section));
|
||||
gtk_widget_destroy (GTK_WIDGET (priv->popup));
|
||||
if (priv->popup)
|
||||
gtk_widget_destroy (GTK_WIDGET (priv->popup));
|
||||
priv->popup = NULL;
|
||||
ev_zoom_action_populate_free_zoom_section (zoom_action);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user