From 1cf48f62e9432d818092e1c3675e96f6e226c822 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Wed, 23 Sep 2020 11:25:46 +0200 Subject: [PATCH] Fix commit "Change the way how the database is exported to file" : produce a fail to build on OSX --- sources/dataBase/projectdatabase.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/dataBase/projectdatabase.cpp b/sources/dataBase/projectdatabase.cpp index 290b5684c..da490ecf6 100644 --- a/sources/dataBase/projectdatabase.cpp +++ b/sources/dataBase/projectdatabase.cpp @@ -530,7 +530,7 @@ sqlite3 *projectDataBase::sqliteHandle(QSqlDatabase *db) { //sqlite 3 lib isn't availlable for the moment on macosx //need some help to add sqlite3 lib on macosx compilation -#if Q_OS_MACOS +#ifdef Q_OS_MACOS return nullptr; #else sqlite3 *handle = nullptr; @@ -562,7 +562,9 @@ void projectDataBase::exportDb(projectDataBase *db, if (caption_.isEmpty()) { caption_ = tr("Exporter la base de données interne du projet"); } - +#ifdef Q_OS_MACOS + return; +#else auto dir_ = dir; if(dir_.isEmpty()) { dir_ = db->project()->filePath(); @@ -602,4 +604,5 @@ void projectDataBase::exportDb(projectDataBase *db, file_db.close(); } QSqlDatabase::removeDatabase(connection_name); +#endif }