[gnote] Fix crash when quiting
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix crash when quiting
- Date: Sun, 12 Jul 2015 11:53:41 +0000 (UTC)
commit e8997f6a05437b9bc08831ef7155235dd5b9cb12
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Jul 12 14:52:28 2015 +0300
Fix crash when quiting
Fixes Bug 751427
src/gnote.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index e6c8a95..dce45e0 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -253,7 +253,13 @@ namespace gnote {
void Gnote::on_quit_gnote_action(const Glib::VariantBase&)
{
- quit();
+ std::vector<Gtk::Window*> windows = Gtk::Window::list_toplevels();
+ FOREACH(Gtk::Window *window, windows) {
+ window->close();
+ }
+ if(is_background()) {
+ release();
+ }
}
void Gnote::on_preferences_response(int /*res*/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]