Copy the database in TestGui before opening it.

We don't want to create lock files in the source tree.
This commit is contained in:
Felix Geyer
2015-07-19 19:33:47 +02:00
parent 7d3fb58cf5
commit 3d1c27ceb7
2 changed files with 18 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
#include <QAbstractItemModel>
#include <QObject>
#include <QTemporaryFile>
class Database;
class DatabaseTabWidget;
@@ -60,6 +61,8 @@ private:
MainWindow* m_mainWindow;
DatabaseTabWidget* m_tabWidget;
DatabaseWidget* m_dbWidget;
QTemporaryFile m_orgDbFile;
QString m_orgDbFileName;
QString m_tmpFileName;
Database* m_db;
};