diff options
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.cpp')
-rw-r--r-- | plugins/ProfileEditor/forms/profileview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.cpp b/plugins/ProfileEditor/forms/profileview.cpp index 2ffb119..caa9723 100644 --- a/plugins/ProfileEditor/forms/profileview.cpp +++ b/plugins/ProfileEditor/forms/profileview.cpp @@ -20,6 +20,7 @@ void ProfileView::connectSetting(QCheckBox *checkBox, QWebEngineSettings *settin connect(checkBox, &QCheckBox::clicked, [this, settings, attr](bool checked) { this->m_isChanged = true; settings->setAttribute(attr, checked); + emit m_profile->attributeChanged(attr, checked); }); } @@ -33,6 +34,10 @@ ProfileView::ProfileView(WebProfile *profile, QWidget *parent) // general tab ui->name->setText(profile->name()); + connect(ui->name, &QLineEdit::editingFinished, profile, [=]() { + profile->setName(ui->name->text()); + }); + ui->offTheRecord->setChecked(profile->isOffTheRecord()); ui->homepage->setText(profile->homepage().toString()); |