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
This commit is contained in:
Dominik Wenger 2008-01-30 19:46:02 +00:00
parent 8e5ba83059
commit 2d98607b36
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

@ -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";
}
}