! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Shutdown action doesn't work in the fallback mode
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Mikhail Efremov 2015-03-20 19:12:51 CET
Created attachment 6101 
Fix 'shutdown' action in the fallback mode

The bug can be easily fixed in this way:
-  if (type == XFSM_SHUTDOWN_RESTART)
+  else if (type == XFSM_SHUTDOWN_RESTART)

but I think it would be better to use switch instead of multiple if..else.
Comment 1 Eric Koegel editbugs 2015-03-28 05:06:10 CET
Awesome, thanks! Pushed to master in:
commit 83fd4fee8697fc5da8411c99b18900d211b72d68
Author: Mikhail Efremov <sem@altlinux.org>
Date:   Fri Mar 20 20:54:38 2015 +0300

    Fix 'shutdown' action in the fallback mode
    
    Use switch instead of multiple if..else.
    
    Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
http://git.xfce.org/xfce/xfce4-session/commit/?id=83fd4fee8697fc5da8411c99b18900d211b72d68

Bug #11730

Reported by:
Mikhail Efremov
Reported on: 2015-03-20
Last modified on: 2015-03-28

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
4.12.0

Attachments

Additional information