initial commit
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include "common.h"
|
||||
|
||||
#include "cmainwindow.h"
|
||||
#include "ui_cmainwindow.h"
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,6 @@ cPictureLibrary::cPictureLibrary(QObject *parent) : QObject(parent)
|
||||
|
||||
bool cPictureLibrary::openDatabase()
|
||||
{
|
||||
QSqlQuery query;
|
||||
QSettings settings;
|
||||
QString szDB = settings.value("database/path").toString();
|
||||
|
||||
@@ -29,6 +28,7 @@ bool cPictureLibrary::openDatabase()
|
||||
return(false);
|
||||
}
|
||||
|
||||
QSqlQuery query;
|
||||
if(!m_db.tables().contains("config"))
|
||||
createDatabase();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user