diff --git a/src/xfpm-power.c b/src/xfpm-power.c index 172cff8..258c795 100644 --- a/src/xfpm-power.c +++ b/src/xfpm-power.c @@ -442,7 +442,7 @@ xfpm_power_sleep (XfpmPower *power, const gchar *sleep_time, gboolean force) ret = gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); - if ( !ret ) + if ( !ret || ret == GTK_RESPONSE_NO) return; } }