@@ -33,9 +33,10 @@ inline QString sanitiseString(QString string) {
33 .remove(QLatin1Char('\\'));
33 .remove(QLatin1Char('\\'));
36−WindowStateStorage::WindowStateStorage(QObject *parent):
36+WindowStateStorage::WindowStateStorage(QObject *parent, bool testMode):
37 QObject(parent)
37 QObject(parent)
39+ QStandardPaths::setTestModeEnabled(testMode);
39 const QString dbPath = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QStringLiteral("/unity8/");
40 const QString dbPath = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QStringLiteral("/unity8/");
40 m_db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
41 m_db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));