[balsa/gtk3] Do not crash when part is changed while finding
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not crash when part is changed while finding
- Date: Fri, 27 Mar 2015 22:19:51 +0000 (UTC)
commit 29ed1c0390fdfb18a2f3e3ee540d3a0ff706ca00
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Mar 27 18:18:33 2015 -0400
Do not crash when part is changed while finding
* src/balsa-message.c: do not crash when current part is changed
while the find-bar is showing.
ChangeLog | 5 +++++
src/balsa-message.c | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a464c88..c195771 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-27 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * src/balsa-message.c: do not crash when current part is changed
+ while the find-bar is showing.
+
2015-03-26 Peter Bloomfield <pbloomfield bellsouth net>
* src/store-address.c (store_address_dialog): grab the keyboard
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 7b9bdb6..fb5d257 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -2324,9 +2324,7 @@ select_part(BalsaMessage * bm, BalsaPartInfo *info)
GtkAdjustment *hadj, *vadj;
hide_all_parts(bm);
-
- if (bm->current_part)
- g_object_unref(bm->current_part);
+ bm_disable_find_entry(bm);
body = add_part(bm, info, bm->bm_widget->container);
bm->current_part = part_info_from_body(bm, body);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]