From 19998a1318b2f3ce0002d4c2e14e0af402808be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 14 Jan 2013 19:09:26 +0100 Subject: [PATCH] Ruta de almacenamiento de YACReader.ini forzada --- YACReader/main_window_viewer.cpp | 2 +- YACReader/viewer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 5205b585..80060a3c 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -19,7 +19,7 @@ MainWindowViewer::MainWindowViewer() void MainWindowViewer::loadConfiguration() { - settings = new QSettings("YACReader.ini",QSettings::IniFormat); + settings = new QSettings(QCoreApplication::applicationDirPath()+"/YACReader.ini",QSettings::IniFormat); Configuration & config = Configuration::getConfiguration(); config.load(settings); diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index bec1ce82..c8704fb7 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -67,7 +67,7 @@ drag(false) goToDialog = new GoToDialog(this); - QSettings * settings = new QSettings("YACReader.ini",QSettings::IniFormat); + QSettings * settings = new QSettings(QCoreApplication::applicationDirPath()+"/YACReader.ini",QSettings::IniFormat); //CONFIG GOTO_FLOW-------------------------------------------------------- if(QGLFormat::hasOpenGL() && !settings->contains(USE_OPEN_GL))