glom r1484 - in trunk: . glom/navigation
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1484 - in trunk: . glom/navigation
- Date: Sat, 29 Mar 2008 21:30:12 +0000 (GMT)
Author: murrayc
Date: Sat Mar 29 21:30:11 2008
New Revision: 1484
URL: http://svn.gnome.org/viewvc/glom?rev=1484&view=rev
Log:
2008-03-29 Murray Cumming <murrayc murrayc com>
* glom/navigation/box_tables.cc: fill_from_database(): Do show tables
that are in the database but not in the document (hidden by default),
allowing us to adapt to an existing database.
on_adddel_Edit(): Do not complain about tables that are not in the
document.
Modified:
trunk/ChangeLog
trunk/glom/navigation/box_tables.cc
Modified: trunk/glom/navigation/box_tables.cc
==============================================================================
--- trunk/glom/navigation/box_tables.cc (original)
+++ trunk/glom/navigation/box_tables.cc Sat Mar 29 21:30:11 2008
@@ -148,7 +148,7 @@
m_AddDel.remove_all();
Glib::RefPtr<Gnome::Gda::Connection> connection = sharedconnection->get_gda_connection();
- type_vecStrings vecTables = document->get_table_names();
+ type_vecStrings vecTables = get_table_names_from_database();
for(type_vecStrings::iterator iter = vecTables.begin(); iter != vecTables.end(); iter++)
{
@@ -326,9 +326,8 @@
{
//Don't open a table that the document does not know about, because we need information from the document:
//This should never happen, because we never show them in the list:
- if(!document->get_table_is_known(table_name))
+ if(false) //Let's see if we can adapt. (!document->get_table_is_known(table_name))
{
- //TODO: Do not show tables that are not in the document.
Gtk::MessageDialog dialog(Bakery::App_Gtk::util_bold_message(_("Unknown Table")), true);
dialog.set_secondary_text(_("You cannot open this table, because there is no information about this table in the document."));
dialog.set_transient_for(*get_app_window());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]