Mercurial > hg > easyhg
comparison src/settingsdialog.cpp @ 484:896b7903e8f2
Make "Show all files" persistent (fixing #203), and rationalise some config group names (noting that "General" is actually the default group "" as it appears in the config file, not the name of a group called "General": that appears as "%General")
author | Chris Cannam |
---|---|
date | Wed, 17 Aug 2011 16:09:04 +0100 |
parents | 7e8688784980 |
children | 533519ebc0cb |
comparison
equal
deleted
inserted
replaced
483:a582c6417004 | 484:896b7903e8f2 |
---|---|
408 settings.remove("extdiffbinary"); | 408 settings.remove("extdiffbinary"); |
409 settings.remove("mergebinary"); | 409 settings.remove("mergebinary"); |
410 settings.remove("sshbinary"); | 410 settings.remove("sshbinary"); |
411 settings.remove("extensionpath"); | 411 settings.remove("extensionpath"); |
412 settings.endGroup(); | 412 settings.endGroup(); |
413 settings.beginGroup("General"); | 413 settings.beginGroup(""); |
414 settings.remove("useextension"); | 414 settings.remove("useextension"); |
415 settings.endGroup(); | 415 settings.endGroup(); |
416 } | 416 } |
417 | 417 |
418 void | 418 void |
437 m_diffPathLabel->setText(settings.value("extdiffbinary").toString()); | 437 m_diffPathLabel->setText(settings.value("extdiffbinary").toString()); |
438 m_mergePathLabel->setText(settings.value("mergebinary").toString()); | 438 m_mergePathLabel->setText(settings.value("mergebinary").toString()); |
439 m_sshPathLabel->setText(settings.value("sshbinary").toString()); | 439 m_sshPathLabel->setText(settings.value("sshbinary").toString()); |
440 m_extensionPathLabel->setText(settings.value("extensionpath").toString()); | 440 m_extensionPathLabel->setText(settings.value("extensionpath").toString()); |
441 settings.endGroup(); | 441 settings.endGroup(); |
442 settings.beginGroup("General"); | 442 settings.beginGroup(""); |
443 m_useExtension->setChecked(settings.value("useextension", true).toBool()); | 443 m_useExtension->setChecked(settings.value("useextension", true).toBool()); |
444 settings.endGroup(); | 444 settings.endGroup(); |
445 } | 445 } |
446 | 446 |
447 void | 447 void |
484 settings.setValue("extdiffbinary", m_diffPathLabel->text()); | 484 settings.setValue("extdiffbinary", m_diffPathLabel->text()); |
485 settings.setValue("mergebinary", m_mergePathLabel->text()); | 485 settings.setValue("mergebinary", m_mergePathLabel->text()); |
486 settings.setValue("sshbinary", m_sshPathLabel->text()); | 486 settings.setValue("sshbinary", m_sshPathLabel->text()); |
487 settings.setValue("extensionpath", m_extensionPathLabel->text()); | 487 settings.setValue("extensionpath", m_extensionPathLabel->text()); |
488 settings.endGroup(); | 488 settings.endGroup(); |
489 settings.beginGroup("General"); | 489 settings.beginGroup(""); |
490 settings.setValue("useextension", m_useExtension->isChecked()); | 490 settings.setValue("useextension", m_useExtension->isChecked()); |
491 settings.endGroup(); | 491 settings.endGroup(); |
492 QDialog::accept(); | 492 QDialog::accept(); |
493 } | 493 } |
494 | 494 |