From bf812b4d01c903167efb62ed1a7ea7b815f180f7 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sun, 17 Jan 2016 21:31:50 +0100 Subject: [PATCH] Fixed bug when opening another database file. --- core/context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/context.cpp b/core/context.cpp index c5d80af..dc607a8 100644 --- a/core/context.cpp +++ b/core/context.cpp @@ -70,6 +70,7 @@ void Context::openDb(const QString &path) { if (m_db != NULL) { delete m_db; + m_solved.clear(); m_dbOpened = false; } @@ -177,6 +178,7 @@ void Context::createSchema(IPlugin *plugin, const QSqlDatabase &db, const QMappluginId()) || i >= ver) { QString sql = plugin->schemas()[i]; + sql = sql.trimmed(); QSqlQuery q(db); QStringList sqlList = sql.split(";");