[PATCH] Fix Bug 595564 - wrong behavior on cancel



I you use gnome-sound-record and on question "save recording befor closing" you
press cancel it will just close the programm.

Signed-off-by: Alexey Fisher <bug-track fisher-privat net>
---
 grecord/src/gnome-recorder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/grecord/src/gnome-recorder.c b/grecord/src/gnome-recorder.c
index 80ba4ed..ecb5737 100644
--- a/grecord/src/gnome-recorder.c
+++ b/grecord/src/gnome-recorder.c
@@ -52,10 +52,10 @@ delete_event_cb (GSRWindow *window,
 {
 	if (!gsr_window_is_saved (window) && gsr_discard_confirmation_dialog (window, TRUE)) {
 		gsr_window_close (window);
-		return TRUE;
+		return FALSE;
 	}
 
-	return FALSE;
+	return TRUE;
 }
 
 static void
-- 
1.6.3.3



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