[glom/glom-1-18] Do not blank the data when showing the field definitions dialog.



commit 33012de8956baf4cabc9ab9b08fef24488981a52
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Nov 3 09:57:54 2011 +0100

    Do not blank the data when showing the field definitions dialog.
    
    * glom/frame_glom.cc: do_menu_developer_fields(): Only blank the data
    view if using SQLite, which requires it, because it looks like a bug to
    the user.
    
    Conflicts:
    
    	glom/mode_data/box_data_list.cc

 ChangeLog          |    8 ++++++++
 glom/frame_glom.cc |    4 +++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d87d135..0ef0f0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-03  Murray Cumming  <murrayc murrayc com>
+
+	Do not blank the data when showing the field definitions dialog.
+
+	* glom/frame_glom.cc: do_menu_developer_fields(): Only blank the data 
+	view if using SQLite, which requires it, because it looks like a bug to 
+	the user.
+
 2011-10-27  Murray Cumming  <murrayc murrayc com>
 
 	More includes fixes to fix the build.
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index bad6bb6..78fc668 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -1718,7 +1718,9 @@ void Frame_Glom::do_menu_developer_fields(Gtk::Window& parent, const Glib::ustri
   // Some database backends (SQLite) require the table to change to no longer
   // be in use when changing the records, so we stop the database usage
   // here. We reshow everything in on_developer_dialog_hide() anyway.
-  show_no_table();
+  Document* document = dynamic_cast<Document*>(get_document());
+  if(document && document->get_hosting_mode() == Document::HOSTING_MODE_SQLITE)
+    show_no_table();
 
   // Remember the old table name so that we re-show the previous table as
   // soon as the dialog has been closed.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]