forked from len0rd/rockbox
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:
parent
8e5ba83059
commit
2d98607b36
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
defaultQuality =defQ;
|
||||||
defaultVolume = defV;
|
defaultVolume = defV;
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class EncRbSpeexGui : public QDialog
|
||||||
public:
|
public:
|
||||||
EncRbSpeexGui(QDialog* parent = NULL);
|
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;}
|
void setCfg(RbSettings* sett){settings = sett;}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
||||||
|
|
@ -32,13 +32,13 @@ void RbSettings::open()
|
||||||
if(config.isFile())
|
if(config.isFile())
|
||||||
{
|
{
|
||||||
userSettings = new QSettings(qApp->applicationDirPath() + "/RockboxUtility.ini",
|
userSettings = new QSettings(qApp->applicationDirPath() + "/RockboxUtility.ini",
|
||||||
QSettings::IniFormat, 0);
|
QSettings::IniFormat, this);
|
||||||
qDebug() << "config: portable";
|
qDebug() << "config: portable";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
userSettings = new QSettings(QSettings::IniFormat,
|
userSettings = new QSettings(QSettings::IniFormat,
|
||||||
QSettings::UserScope, "rockbox.org", "RockboxUtility");
|
QSettings::UserScope, "rockbox.org", "RockboxUtility",this);
|
||||||
qDebug() << "config: system";
|
qDebug() << "config: system";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue