summaryrefslogtreecommitdiff
path: root/src/sync/syncwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/syncwidget.cpp')
-rw-r--r--src/sync/syncwidget.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sync/syncwidget.cpp b/src/sync/syncwidget.cpp
index c5295c93..b8e95753 100644
--- a/src/sync/syncwidget.cpp
+++ b/src/sync/syncwidget.cpp
@@ -42,6 +42,14 @@ SyncWidget::SyncWidget(QWidget *parent)
{
setupUi(this);
+ kcfg_syncEnabled->setChecked(ReKonfig::syncEnabled());
+ kcfg_syncBookmarks->setChecked(ReKonfig::syncBookmarks());
+ kcfg_syncHistory->setChecked(ReKonfig::syncHistory());
+ kcfg_syncPasswords->setChecked(ReKonfig::syncPasswords());
+ kcfg_syncHost->setText(ReKonfig::syncHost());
+ kcfg_syncUser->setText(ReKonfig::syncUser());
+ kcfg_syncPass->setText(ReKonfig::syncPass());
+
bool isSyncEnabled = ReKonfig::syncEnabled();
enablewidgets(isSyncEnabled);
@@ -56,6 +64,14 @@ SyncWidget::SyncWidget(QWidget *parent)
void SyncWidget::save()
{
+ ReKonfig::setSyncEnabled(kcfg_syncEnabled->isChecked());
+ ReKonfig::setSyncBookmarks(kcfg_syncBookmarks->isChecked());
+ ReKonfig::setSyncHistory(kcfg_syncHistory->isChecked());
+ ReKonfig::setSyncPasswords(kcfg_syncPasswords->isChecked());
+ ReKonfig::setSyncHost(kcfg_syncHost->text());
+ ReKonfig::setSyncUser(kcfg_syncUser->text());
+ ReKonfig::setSyncPass(kcfg_syncPass->text());
+
rApp->syncManager()->firstTimeSync();
}