diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-12-07 00:41:10 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-12-07 00:52:05 (GMT) |
commit | 16447b1193fedf5fdcf1f3d270fa73c5036a1ba0 (patch) | |
tree | a4583b88da045b6c036f99d0ceefd932948d446b /src/declarative | |
parent | 4f5017995bd493c30c5e0321711f2e1759b4189c (diff) | |
download | Qt-16447b1193fedf5fdcf1f3d270fa73c5036a1ba0.zip Qt-16447b1193fedf5fdcf1f3d270fa73c5036a1ba0.tar.gz Qt-16447b1193fedf5fdcf1f3d270fa73c5036a1ba0.tar.bz2 |
Fix openDatabaseSync() to not create unused directory
Task-number: QTBUG-15909
Reviewed-by: Warwick Allison
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativesqldatabase.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativesqldatabase.cpp b/src/declarative/qml/qdeclarativesqldatabase.cpp index 45f277e..3f53111 100644 --- a/src/declarative/qml/qdeclarativesqldatabase.cpp +++ b/src/declarative/qml/qdeclarativesqldatabase.cpp @@ -375,7 +375,6 @@ static QScriptValue qmlsqldatabase_open_sync(QScriptContext *context, QScriptEng } else { created = !QFile::exists(basename+QLatin1String(".sqlite")); database = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), dbid); - QDir().mkpath(basename); if (created) { ini.setValue(QLatin1String("Name"), dbname); if (dbcreationCallback.isFunction()) |