mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Fix commit "Change the way how the database is exported to file" :
produce a fail to build on OSX
This commit is contained in:
@@ -530,7 +530,7 @@ sqlite3 *projectDataBase::sqliteHandle(QSqlDatabase *db)
|
|||||||
{
|
{
|
||||||
//sqlite 3 lib isn't availlable for the moment on macosx
|
//sqlite 3 lib isn't availlable for the moment on macosx
|
||||||
//need some help to add sqlite3 lib on macosx compilation
|
//need some help to add sqlite3 lib on macosx compilation
|
||||||
#if Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
return nullptr;
|
return nullptr;
|
||||||
#else
|
#else
|
||||||
sqlite3 *handle = nullptr;
|
sqlite3 *handle = nullptr;
|
||||||
@@ -562,7 +562,9 @@ void projectDataBase::exportDb(projectDataBase *db,
|
|||||||
if (caption_.isEmpty()) {
|
if (caption_.isEmpty()) {
|
||||||
caption_ = tr("Exporter la base de données interne du projet");
|
caption_ = tr("Exporter la base de données interne du projet");
|
||||||
}
|
}
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
|
return;
|
||||||
|
#else
|
||||||
auto dir_ = dir;
|
auto dir_ = dir;
|
||||||
if(dir_.isEmpty()) {
|
if(dir_.isEmpty()) {
|
||||||
dir_ = db->project()->filePath();
|
dir_ = db->project()->filePath();
|
||||||
@@ -602,4 +604,5 @@ void projectDataBase::exportDb(projectDataBase *db,
|
|||||||
file_db.close();
|
file_db.close();
|
||||||
}
|
}
|
||||||
QSqlDatabase::removeDatabase(connection_name);
|
QSqlDatabase::removeDatabase(connection_name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user