From 51a0f1b458cf56a5379316ef65f778477f48bbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 23 May 2012 07:23:25 +0200 Subject: [PATCH] cambios menores --- YACReader/YACReader.pro | 3 +++ YACReaderLibrary/data_base_management.cpp | 2 +- .../server/lib/bfHttpServer/staticfilecontroller.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/YACReader/YACReader.pro b/YACReader/YACReader.pro index d8037321..6c155e26 100644 --- a/YACReader/YACReader.pro +++ b/YACReader/YACReader.pro @@ -52,3 +52,6 @@ RESOURCES += images.qrc \ RC_FILE = icon.rc TRANSLATIONS = yacreader_es.ts \ yacreader_fr.ts FORMS += + +Release:DESTDIR = ../release +Debug:DESTDIR = ../debug \ No newline at end of file diff --git a/YACReaderLibrary/data_base_management.cpp b/YACReaderLibrary/data_base_management.cpp index 98d0bb8f..83632489 100644 --- a/YACReaderLibrary/data_base_management.cpp +++ b/YACReaderLibrary/data_base_management.cpp @@ -11,7 +11,7 @@ DataBaseManagement::DataBaseManagement() bool DataBaseManagement::createDataBase(QString name, QString path) { QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); - db.setDatabaseName(name + ".ydb"); + db.setDatabaseName(QDir::cleanPath(path) + "/" + name + ".ydb"); if (!db.open()) qDebug() << db.lastError(); else { diff --git a/YACReaderLibrary/server/lib/bfHttpServer/staticfilecontroller.h b/YACReaderLibrary/server/lib/bfHttpServer/staticfilecontroller.h index b9346c5e..e671b1dc 100644 --- a/YACReaderLibrary/server/lib/bfHttpServer/staticfilecontroller.h +++ b/YACReaderLibrary/server/lib/bfHttpServer/staticfilecontroller.h @@ -79,7 +79,7 @@ private: QString getLocalizedFileName(QString fileName, QString locales, QString path) const; - bool StaticFileController::exists(QString localizedName, QString path) const; + bool exists(QString localizedName, QString path) const; }; #endif // STATICFILECONTROLLER_H