[gnome-settings-daemon/gnome-3-8] power: Don't crash if we want to hibernate on low power



commit 9bb94162ba35393aff292028e4dbe3d4b64b9889
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 3 17:11:43 2013 -0400

    power: Don't crash if we want to hibernate on low power

 plugins/power/gsd-power-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 96da3d1..645df66 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3057,6 +3057,7 @@ show_sleep_warning (GsdPowerManager *manager)
                 create_notification (_("Automatic hibernation"), _("Computer will suspend very soon because 
of inactivity."),
                                      NULL,
                                      &manager->priv->notification_sleep_warning);
+                break;
         default:
                 g_assert_not_reached ();
                 break;


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