summaryrefslogtreecommitdiff
path: root/mg_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg_db.c')
-rw-r--r--mg_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mg_db.c b/mg_db.c
index 8ef0757..6a53454 100644
--- a/mg_db.c
+++ b/mg_db.c
@@ -1510,7 +1510,10 @@ bool
mgKeyGdFolder::Enabled(mgDb *db)
{
if (m_enabled<0)
+ {
+ if (!db->Connect()) return false;
m_enabled = db->FieldExists("tracks", m_field);
+ }
return (m_enabled==1);
}