[glom] Details: Avoid an empty layout when changing to developer mode.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Details: Avoid an empty layout when changing to developer mode.
- Date: Tue, 20 Sep 2011 21:25:30 +0000 (UTC)
commit 6ccb0e768bad43ea0591054d17a73f2011441d6e
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 20 23:25:17 2011 +0200
Details: Avoid an empty layout when changing to developer mode.
* glom/mode_data/box_data_details.cc: on_userlevel_changed(): Recreate
and refill the layout, instead of just recreating it.
ChangeLog | 7 +++++++
glom/mode_data/box_data_details.cc | 3 ++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3138015..940389c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-09-20 Murray Cumming <murrayc murrayc com>
+ Details: Avoid an empty layout when changing to developer mode.
+
+ * glom/mode_data/box_data_details.cc: on_userlevel_changed(): Recreate
+ and refill the layout, instead of just recreating it.
+
+2011-09-20 Murray Cumming <murrayc murrayc com>
+
Some checks for GValues with invalid types.
* glom/libglom/data_structure/glomconversions.cc: value_is_empty():
diff --git a/glom/mode_data/box_data_details.cc b/glom/mode_data/box_data_details.cc
index 9897c64..b4f578b 100644
--- a/glom/mode_data/box_data_details.cc
+++ b/glom/mode_data/box_data_details.cc
@@ -889,8 +889,9 @@ void Box_Data_Details::on_userlevel_changed(AppState::userlevels user_level)
#ifndef GLOM_ENABLE_CLIENT_ONLY
m_design_mode = ( user_level == AppState::USERLEVEL_DEVELOPER );
m_FlowTable.set_design_mode(m_design_mode);
+
// Recreate the layout to correctly set the size of empty flowtables:
- create_layout();
+ init_db_details(m_found_set, m_layout_platform, m_primary_key_value);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]