]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
Do not connect selection changed signal more than once. Fixes bug #349433.
[evince.git] / shell / ev-window.c
index 27281b76b56536d252d3f298eff4f3eb6988166c..e9dea310cc8f2e9c632a842b5a965a92d5431bb7 100644 (file)
@@ -3616,6 +3616,9 @@ ev_window_view_toolbar_cb (GtkAction *action, EvWindow *ev_window)
 static void
 ev_window_view_sidebar_cb (GtkAction *action, EvWindow *ev_window)
 {
 static void
 ev_window_view_sidebar_cb (GtkAction *action, EvWindow *ev_window)
 {
+       if (ev_view_get_presentation (EV_VIEW (ev_window->priv->view)))
+               return;
+       
        update_chrome_flag (ev_window, EV_CHROME_SIDEBAR,
                            gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
 }
        update_chrome_flag (ev_window, EV_CHROME_SIDEBAR,
                            gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
 }