aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/localstorage/plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp
index 9a0528a28f..2b3ef34d4c 100644
--- a/src/imports/localstorage/plugin.cpp
+++ b/src/imports/localstorage/plugin.cpp
@@ -186,7 +186,9 @@ static QString qmlsqldatabase_databasesPath(QV8Engine *engine)
static void qmlsqldatabase_initDatabasesPath(QV8Engine *engine)
{
- QDir().mkpath(qmlsqldatabase_databasesPath(engine));
+ QString databasesPath = qmlsqldatabase_databasesPath(engine);
+ if (!QDir().mkpath(databasesPath))
+ qWarning() << "LocalStorage: can't create path - " << databasesPath;
}
static QString qmlsqldatabase_databaseFile(const QString& connectionName, QV8Engine *engine)