[libgda/LIBGDA_4.2] GdaBrowser: always refresh meta data for new virtual connections



commit f7a361af1fb5d432ce5c985b7120d89693df3e2a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Mar 20 15:21:39 2011 +0100

    GdaBrowser: always refresh meta data for new virtual connections

 tools/browser/browser-connection.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tools/browser/browser-connection.c b/tools/browser/browser-connection.c
index 27aa856..fe1c923 100644
--- a/tools/browser/browser-connection.c
+++ b/tools/browser/browser-connection.c
@@ -27,6 +27,7 @@
 #include <libgda/gda-sql-builder.h>
 #include <libgda-ui/gdaui-enums.h>
 #include "../config-info.h"
+#include "browser-virtual-connection.h"
 
 #include "browser-connection-priv.h"
 
@@ -415,7 +416,10 @@ browser_connection_set_property (GObject *object,
 									     cnc_string);
 			g_free (cnc_string);
 			if (dict_file_name) {
-				if (! g_file_test (dict_file_name, G_FILE_TEST_EXISTS))
+				if (BROWSER_IS_VIRTUAL_CONNECTION (bcnc))
+					/* force meta store update in case of virtual connection */
+					update_store = TRUE;
+				else if (! g_file_test (dict_file_name, G_FILE_TEST_EXISTS))
 					update_store = TRUE;
 				store = gda_meta_store_new_with_file (dict_file_name);
 			}



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