[ease] [editor] Properly quit when the window is closed.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [editor] Properly quit when the window is closed.
- Date: Mon, 26 Jul 2010 22:57:20 +0000 (UTC)
commit 83e942545243c296c0826250b0f8b8a579f46dc5
Author: Nate Stedman <natesm gmail com>
Date: Mon Jul 26 18:56:50 2010 -0400
[editor] Properly quit when the window is closed.
src/ease-editor-window.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ease-editor-window.vala b/src/ease-editor-window.vala
index d44174c..bd4fab8 100644
--- a/src/ease-editor-window.vala
+++ b/src/ease-editor-window.vala
@@ -204,7 +204,11 @@ public class Ease.EditorWindow : Gtk.Window
dialog.destroy();
if (response == Gtk.ResponseType.CANCEL) return true;
- if (response == Gtk.ResponseType.NO) return false;
+ if (response == Gtk.ResponseType.NO)
+ {
+ Main.remove_window(this);
+ return false;
+ }
// otherwise, save and quit
var result = !save_document(null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]