[gnumeric] GUI: Fix crash in define-name dialog when sheet is removed underneath it
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Fix crash in define-name dialog when sheet is removed underneath it
- Date: Sun, 3 Mar 2013 23:42:09 +0000 (UTC)
commit 31e20fb33f5efa32c83097c17d525c11203227c3
Author: Morten Welinder <terra gnome org>
Date: Sun Mar 3 18:41:39 2013 -0500
GUI: Fix crash in define-name dialog when sheet is removed underneath it
NEWS | 2 +-
src/dialogs/ChangeLog | 1 +
src/dialogs/dialog-define-names.c | 3 +++
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index f486b31..c226b6c 100644
--- a/NEWS
+++ b/NEWS
@@ -41,7 +41,7 @@ Morten:
* Unconditionally enable solver.
* Rewrite the file history dialog. [#694777]
* Fix R.QF and R.QBINOM documentation.
- * Fix sheet-removed crash for goal-seek.c. [#364291]
+ * Fix sheet-removed crash for goal-seek and define-name. [#364291]
--------------------------------------------------------------------------
Gnumeric 1.12.0
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 241e445..12a8568 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -2,6 +2,7 @@
* dialog-goal-seek.c (dialog_init): Setup destroy handler for
sheet removal. [#364291]
+ * dialog-define-names.c (name_guru_init): Ditto.
2013-03-02 Jean Brefort <jean brefort normalesup org>
diff --git a/src/dialogs/dialog-define-names.c b/src/dialogs/dialog-define-names.c
index 9111dda..77016b5 100644
--- a/src/dialogs/dialog-define-names.c
+++ b/src/dialogs/dialog-define-names.c
@@ -1073,6 +1073,9 @@ name_guru_init (NameGuruState *state, WBCGtk *wbcg, gboolean is_paste_dialog)
state->dialog = go_gtk_builder_get_widget (state->gui, "NameGuru");
+ gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
+ state->wbcg,
+ GNM_DIALOG_DESTROY_SHEET_REMOVED);
state->model = gtk_tree_store_new
(NUM_COLMNS,
G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]