diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-10-17 22:32:31 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-10-17 22:32:31 +0000 |
commit | 7bcfa84c4a5908ad4feeb4ab508b1e053f19925d (patch) | |
tree | d3598cddac00b6c148bcb124329160d4e4c886c2 | |
parent | 3674af64417b911ce69539abeb6b99e3875b1a90 (diff) |
Don't check for external rbutil.ini anymore -- doing so didn't gave a real benefit but caused trouble instead. The file is built-in anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15174 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index e768439a0d..57510596d0 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -47,16 +47,8 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) { absolutePath = qApp->applicationDirPath(); - // use built-in rbutil.ini if no external file in binary folder - QString iniFile = absolutePath + "/rbutil.ini"; - if(QFileInfo(iniFile).isFile()) { - qDebug() << "using external rbutil.ini"; - devices = new QSettings(iniFile, QSettings::IniFormat, 0); - } - else { - qDebug() << "using built-in rbutil.ini"; - devices = new QSettings(":/ini/rbutil.ini", QSettings::IniFormat, 0); - } + // only use built-in rbutil.ini + devices = new QSettings(":/ini/rbutil.ini", QSettings::IniFormat, 0); ui.setupUi(this); @@ -817,7 +809,8 @@ void RbUtilQt::downloadManual(void) devices->beginGroup(userSettings->value("platform").toString()); QString manual; - manual = devices->value("manualname", "rockbox-" + devices->value("platform").toString()).toString(); + manual = devices->value("manualname", "rockbox-" + + devices->value("platform").toString()).toString(); devices->endGroup(); QString date = (info.value("dailies/date").toString()); @@ -973,7 +966,8 @@ QUrl RbUtilQt::proxy() DWORD buflen = 80; long ret; - ret = RegOpenKeyEx(HKEY_CURRENT_USER, _TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"), + ret = RegOpenKeyEx(HKEY_CURRENT_USER, + _TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"), 0, KEY_QUERY_VALUE, &hk); if(ret != ERROR_SUCCESS) return QUrl(""); |