Fix "menu_previousmode" setting not loading when opening the settings window.

This commit is contained in:
Eduardo Sánchez Muñoz 2015-07-15 18:46:18 +02:00
parent bce62a0558
commit c051506fdd
3 changed files with 4 additions and 3 deletions

View File

@ -57,8 +57,8 @@ int main(int argc, char** argv) {
QSslSocket::addDefaultCaCertificates(
QSslCertificate::fromPath(":/certs/godaddy-root.pem", QSsl::Pem));
QSslSocket::addDefaultCaCertificates(
QSslCertificate::fromPath(":/certs/Equifax_Secure_Certificate_Authority.pem", QSsl::Pem));
QSslSocket::addDefaultCaCertificates(QSslCertificate::fromPath(
":/certs/Equifax_Secure_Certificate_Authority.pem", QSsl::Pem));
TagReaderWorker worker(&socket);

View File

@ -109,7 +109,6 @@ void Player::ReloadSettings() {
s.endGroup();
engine_->ReloadSettings();
}

View File

@ -130,6 +130,8 @@ void BehaviourSettingsPage::Load() {
s.endGroup();
s.beginGroup(Player::kSettingsGroup);
ui_->menu_previousmode->setCurrentIndex(ui_->menu_previousmode->findData(
s.value("menu_previousmode", Player::PreviousBehaviour_DontRestart).toInt()));
ui_->seek_step_sec->setValue(s.value("seek_step_sec", 10).toInt());
s.endGroup();