[gnote/gnome-3-10] Do not create window on close in background mode



commit 6508d2da02c03eed772782451143eed1e08bcc77
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Dec 16 22:58:15 2013 +0200

    Do not create window on close in background mode

 src/gnote.cpp |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 10bcd29..8a4a187 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -423,10 +423,6 @@ namespace gnote {
   void Gnote::on_main_window_closed(Gtk::Window *win)
   {
     delete win;
-    // if background mode, we need to have a window, to prevent quit
-    if(m_is_background && !Gtk::Window::list_toplevels().size()) {
-      new_main_window();
-    }
   }
 
   MainWindow & Gnote::get_window_for_note()


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