cambios menores

This commit is contained in:
Luis Ángel San Martín 2012-05-23 07:23:25 +02:00
parent 391dc82193
commit 51a0f1b458
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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