[libgda] GdaBrowser: always refresh meta data for new virtual connections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaBrowser: always refresh meta data for new virtual connections
- Date: Sun, 20 Mar 2011 15:38:58 +0000 (UTC)
commit 3518af61957e2bca2bf39ad2bbcc80de333b7883
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 fca2834..bb59d6a 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]