mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove curly brackets
...as they were completely wrapped up by another pair of curly brackets.
This commit is contained in:
committed by
Carlos R. Mafra
parent
cbff60297e
commit
6bc550d91b
@@ -213,29 +213,25 @@ static void shutdownCommand(WMenu * menu, WMenuEntry * entry)
|
|||||||
if ((long)entry->clientdata == M_QUICK)
|
if ((long)entry->clientdata == M_QUICK)
|
||||||
result = R_CLOSE;
|
result = R_CLOSE;
|
||||||
else {
|
else {
|
||||||
{
|
int r, oldSaveSessionFlag;
|
||||||
int r, oldSaveSessionFlag;
|
|
||||||
|
|
||||||
oldSaveSessionFlag = wPreferences.save_session_on_exit;
|
oldSaveSessionFlag = wPreferences.save_session_on_exit;
|
||||||
|
|
||||||
r = wExitDialog(menu->frame->screen_ptr,
|
r = wExitDialog(menu->frame->screen_ptr,
|
||||||
_("Kill X session"),
|
_("Kill X session"),
|
||||||
_("Kill Window System session?\n"
|
_("Kill Window System session?\n"
|
||||||
"(all applications will be closed)"), _("Kill"), _("Cancel"), NULL);
|
"(all applications will be closed)"), _("Kill"), _("Cancel"), NULL);
|
||||||
if (r == WAPRDefault) {
|
if (r == WAPRDefault) {
|
||||||
result = R_KILL;
|
result = R_KILL;
|
||||||
} else if (r == WAPRAlternate) {
|
} else if (r == WAPRAlternate) {
|
||||||
/* Don't modify the "save session on exit" flag if the
|
/* Don't modify the "save session on exit" flag if the
|
||||||
* user canceled the operation. */
|
* user canceled the operation. */
|
||||||
wPreferences.save_session_on_exit = oldSaveSessionFlag;
|
wPreferences.save_session_on_exit = oldSaveSessionFlag;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result != R_CANCEL) {
|
if (result != R_CANCEL) {
|
||||||
{
|
Shutdown(WSKillMode);
|
||||||
Shutdown(WSKillMode);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#undef R_CLOSE
|
#undef R_CLOSE
|
||||||
#undef R_CANCEL
|
#undef R_CANCEL
|
||||||
|
|||||||
Reference in New Issue
Block a user