glom r1746 - in branches/glom-1-8: . glom/mode_design/users
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1746 - in branches/glom-1-8: . glom/mode_design/users
- Date: Mon, 24 Nov 2008 10:35:10 +0000 (UTC)
Author: murrayc
Date: Mon Nov 24 10:35:10 2008
New Revision: 1746
URL: http://svn.gnome.org/viewvc/glom?rev=1746&view=rev
Log:
2008-11-24  Murray Cumming  <murrayc murrayc com>
* glom/mode_design/users/dialog_groups_list.cc: on_button_group_new():
Put quotes around the group name, to avoid a problem when it contains a 
space.
Modified:
   branches/glom-1-8/ChangeLog
   branches/glom-1-8/glom/mode_design/users/dialog_groups_list.cc
Modified: branches/glom-1-8/glom/mode_design/users/dialog_groups_list.cc
==============================================================================
--- branches/glom-1-8/glom/mode_design/users/dialog_groups_list.cc	(original)
+++ branches/glom-1-8/glom/mode_design/users/dialog_groups_list.cc	Mon Nov 24 10:35:10 2008
@@ -260,7 +260,7 @@
 
   if(!group_name.empty())
   {
-    Glib::ustring strQuery = "CREATE GROUP " + group_name;
+    const Glib::ustring strQuery = "CREATE GROUP \"" + group_name + "\"";
     Glib::RefPtr<Gnome::Gda::DataModel> data_model = query_execute(strQuery, this);
 
     //Give the new group some sensible default privileges:
@@ -401,10 +401,10 @@
   Document_Glom* pDocument = get_document();
   if(pDocument)
   {
-     // Make sure that these are in the document,
-     // so that the correct groups will be created if we recreate the database from the document:
-     GroupInfo group_info;
-     group_info.set_name(group_name);
+    // Make sure that these are in the document,
+    // so that the correct groups will be created if we recreate the database from the document:
+    GroupInfo group_info;
+    group_info.set_name(group_name);
 
     Document_Glom::type_listTableInfo table_list = pDocument->get_tables(true /* plus system prefs */);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]