mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
use setChanged and fix changed handling in save, load and defaults
svn path=/trunk/kdenetwork/krfb/; revision=253188
This commit is contained in:
@@ -91,7 +91,7 @@ KcmKRfb::~KcmKRfb() {
|
||||
}
|
||||
|
||||
void KcmKRfb::configChanged() {
|
||||
emit changed(true);
|
||||
setChanged(true);
|
||||
}
|
||||
|
||||
void KcmKRfb::setInvitationNum(int num) {
|
||||
@@ -135,6 +135,7 @@ void KcmKRfb::load() {
|
||||
m_confWidget->portInput->setValue(m_configuration.preferredPort()> 0 ?
|
||||
m_configuration.preferredPort() : 5900);
|
||||
m_confWidget->disableBackgroundCB->setChecked(m_configuration.disableBackground());
|
||||
setChanged(false);
|
||||
}
|
||||
|
||||
void KcmKRfb::save() {
|
||||
@@ -152,6 +153,7 @@ void KcmKRfb::save() {
|
||||
m_configuration.setPreferredPort(m_confWidget->portInput->value());
|
||||
m_configuration.setDisableBackground(m_confWidget->disableBackgroundCB->isChecked());
|
||||
m_configuration.save();
|
||||
setChanged(false);
|
||||
}
|
||||
|
||||
void KcmKRfb::defaults() {
|
||||
@@ -166,6 +168,7 @@ void KcmKRfb::defaults() {
|
||||
m_confWidget->autoPortCB->setChecked(true);
|
||||
m_confWidget->portInput->setValue(5900);
|
||||
m_confWidget->disableBackgroundCB->setChecked(false);
|
||||
setChanged(true);
|
||||
}
|
||||
|
||||
const KAboutData *KcmKRfb::aboutData() const
|
||||
|
||||
Reference in New Issue
Block a user