[libgda/LIBGDA_4.0] Correctly honor the freeze status of a data model in gda_data_model_reset()
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Correctly honor the freeze status of a data model in gda_data_model_reset()
- Date: Fri, 26 Feb 2010 21:09:25 +0000 (UTC)
commit 434c14746babd826c2aa6dd70324d743f3d05f0d
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Feb 25 09:08:48 2010 +0100
Correctly honor the freeze status of a data model in gda_data_model_reset()
libgda/gda-data-model.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index 1947870..1af2881 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -314,10 +314,12 @@ gda_data_model_reset (GdaDataModel *model)
{
g_return_if_fail (GDA_IS_DATA_MODEL (model));
- g_signal_emit (G_OBJECT (model),
- gda_data_model_signals[RESET], 0);
-
- _gda_data_model_signal_emit_changed (model);
+ if (do_notify_changes (model)) {
+ g_signal_emit (G_OBJECT (model),
+ gda_data_model_signals[RESET], 0);
+
+ _gda_data_model_signal_emit_changed (model);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]