glom r1745 - in trunk: . glom/mode_design/users
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1745 - in trunk: . glom/mode_design/users
- Date: Mon, 24 Nov 2008 10:34:30 +0000 (UTC)
Author: murrayc
Date: Mon Nov 24 10:34:30 2008
New Revision: 1745
URL: http://svn.gnome.org/viewvc/glom?rev=1745&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:
trunk/ChangeLog
trunk/glom/mode_design/users/dialog_groups_list.cc
Modified: trunk/glom/mode_design/users/dialog_groups_list.cc
==============================================================================
--- trunk/glom/mode_design/users/dialog_groups_list.cc (original)
+++ trunk/glom/mode_design/users/dialog_groups_list.cc Mon Nov 24 10:34:30 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]