diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2008-01-30 19:46:02 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2008-01-30 19:46:02 +0000 |
commit | 2d98607b360a6ed83137a906c8c4c194024fe819 (patch) | |
tree | 8ee063521234f137471245802182dcee3a91a1d7 | |
parent | 8e5ba8305992f5a4addbf28790ce4a5dcf012ce1 (diff) |
rbutil: fix a bug in rbsettings: FS#8512 by Sander Knopper. Also remove a warning in encodersgui.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16185 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/encodersgui.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/encodersgui.h | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/rbsettings.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/encodersgui.cpp b/rbutil/rbutilqt/encodersgui.cpp index 76d0acf5c8..b363e95e61 100644 --- a/rbutil/rbutilqt/encodersgui.cpp +++ b/rbutil/rbutilqt/encodersgui.cpp @@ -122,7 +122,7 @@ EncRbSpeexGui::EncRbSpeexGui(QDialog* parent) : QDialog(parent) } -void EncRbSpeexGui::showCfg(float defQ,float defV,float defC, bool defB) +void EncRbSpeexGui::showCfg(float defQ,float defV,int defC, bool defB) { defaultQuality =defQ; defaultVolume = defV; diff --git a/rbutil/rbutilqt/encodersgui.h b/rbutil/rbutilqt/encodersgui.h index f889823ac8..389139c568 100644 --- a/rbutil/rbutilqt/encodersgui.h +++ b/rbutil/rbutilqt/encodersgui.h @@ -55,7 +55,7 @@ class EncRbSpeexGui : public QDialog public: EncRbSpeexGui(QDialog* parent = NULL); - void showCfg(float defQ,float defV,float defC, bool defB); + void showCfg(float defQ,float defV,int defC, bool defB); void setCfg(RbSettings* sett){settings = sett;} public slots: diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp index 2dd19965b9..c4b33ce299 100644 --- a/rbutil/rbutilqt/rbsettings.cpp +++ b/rbutil/rbutilqt/rbsettings.cpp @@ -32,13 +32,13 @@ void RbSettings::open() if(config.isFile()) { userSettings = new QSettings(qApp->applicationDirPath() + "/RockboxUtility.ini", - QSettings::IniFormat, 0); + QSettings::IniFormat, this); qDebug() << "config: portable"; } else { userSettings = new QSettings(QSettings::IniFormat, - QSettings::UserScope, "rockbox.org", "RockboxUtility"); + QSettings::UserScope, "rockbox.org", "RockboxUtility",this); qDebug() << "config: system"; } } |