From 4651330e85460c882fe58ef729d959906762bf7b Mon Sep 17 00:00:00 2001 From: Camilo Higuita Date: Wed, 7 Mar 2018 21:54:13 -0500 Subject: [PATCH] fix db issue were db folder wasn't created and use linked taglib instead of search for local one --- Babe.pro | 9 --------- db/collectionDB.cpp | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Babe.pro b/Babe.pro index 55ed57d..8d9f841 100644 --- a/Babe.pro +++ b/Babe.pro @@ -124,12 +124,6 @@ HEADERS += \ #TAGLIB -linux:unix:!macx:!android { - message(Searching local TagLib lib) - LIBS += -ltag - -} else:android { - message(Building TagLib for Android) DEPENDPATH += 3rdparty/taglib DEPENDPATH += 3rdparty/taglib/ape @@ -388,9 +382,6 @@ HEADERS += \ 3rdparty/taglib/config.h \ 3rdparty/taglib/taglib_config.h \ -} - - #INCLUDEPATH += /usr/include/python3.6m #LIBS += -lpython3.6m diff --git a/db/collectionDB.cpp b/db/collectionDB.cpp index 58f5203..0bda3e6 100644 --- a/db/collectionDB.cpp +++ b/db/collectionDB.cpp @@ -30,6 +30,10 @@ CollectionDB::CollectionDB(QObject *parent) : QObject(parent) if(!BAE::fileExists(BAE::CollectionDBPath + BAE::DBName)) { + QDir collectionDBPath_dir(BAE::CollectionDBPath); + if (!collectionDBPath_dir.exists()) + collectionDBPath_dir.mkpath("."); + this->openDB(this->name); qDebug()<<"Collection doesn't exists, trying to create it" << BAE::CollectionDBPath + BAE::DBName; this->prepareCollectionDB(); -- GitLab