mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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;
|
||||
defaultVolume = defV;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue