[gedit] Fix Bug 731951 - Sometimes Ctrl-Q does not close the window.



commit 693d001dd00585f2ae3a7debf15f0a7cb124f052
Author: Sagar Ghuge <ghugesss gmail com>
Date:   Mon Jul 21 15:07:57 2014 +0530

    Fix Bug 731951 - Sometimes Ctrl-Q does not close the window.

 gedit/gedit-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index a1dcca2..0ad85b3 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -716,8 +716,7 @@ update_actions_sensitivity (GeditWindow *window)
                                             "quit");
        g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
                                     !(window->priv->state & GEDIT_WINDOW_STATE_SAVING) &&
-                                    !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING) &&
-                                    num_tabs > 0);
+                                    !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING));
 
        action = g_action_map_lookup_action (G_ACTION_MAP (window), "save-all");
        g_simple_action_set_enabled (G_SIMPLE_ACTION (action),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]