>From 13417f01b39025d26734578361dc297916bef861 Mon Sep 17 00:00:00 2001
From: Tobias Stoeckmann <[email protected]>
Date: Sat, 5 May 2012 09:57:20 +0200
Subject: [PATCH] Removed curly brackets completely wrapped up by another pair
 of curly brackets.

---
 src/rootmenu.c |   34 +++++++++++++++-------------------
 1 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/src/rootmenu.c b/src/rootmenu.c
index f9b51ab..94d35d9 100644
--- a/src/rootmenu.c
+++ b/src/rootmenu.c
@@ -213,29 +213,25 @@ static void shutdownCommand(WMenu * menu, WMenuEntry * 
entry)
        if ((long)entry->clientdata == M_QUICK)
                result = R_CLOSE;
        else {
-               {
-                       int r, oldSaveSessionFlag;
-
-                       oldSaveSessionFlag = wPreferences.save_session_on_exit;
-
-                       r = wExitDialog(menu->frame->screen_ptr,
-                                       _("Kill X session"),
-                                       _("Kill Window System session?\n"
-                                         "(all applications will be closed)"), 
_("Kill"), _("Cancel"), NULL);
-                       if (r == WAPRDefault) {
-                               result = R_KILL;
-                       } else if (r == WAPRAlternate) {
-                               /* Don't modify the "save session on exit" flag 
if the
-                                * user canceled the operation. */
-                               wPreferences.save_session_on_exit = 
oldSaveSessionFlag;
-                       }
+               int r, oldSaveSessionFlag;
+
+               oldSaveSessionFlag = wPreferences.save_session_on_exit;
+
+               r = wExitDialog(menu->frame->screen_ptr,
+                               _("Kill X session"),
+                               _("Kill Window System session?\n"
+                                 "(all applications will be closed)"), 
_("Kill"), _("Cancel"), NULL);
+               if (r == WAPRDefault) {
+                       result = R_KILL;
+               } else if (r == WAPRAlternate) {
+                       /* Don't modify the "save session on exit" flag if the
+                        * user canceled the operation. */
+                       wPreferences.save_session_on_exit = oldSaveSessionFlag;
                }
        }
 
        if (result != R_CANCEL) {
-               {
-                       Shutdown(WSKillMode);
-               }
+               Shutdown(WSKillMode);
        }
 #undef R_CLOSE
 #undef R_CANCEL
-- 
1.7.6


-- 
To unsubscribe, send mail to [email protected].

Reply via email to