aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ProfileEditor')
-rw-r--r--plugins/ProfileEditor/forms/profileview.cpp4
-rw-r--r--plugins/ProfileEditor/forms/settingstable.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.cpp b/plugins/ProfileEditor/forms/profileview.cpp
index 992364c..23713cb 100644
--- a/plugins/ProfileEditor/forms/profileview.cpp
+++ b/plugins/ProfileEditor/forms/profileview.cpp
@@ -111,8 +111,8 @@ ProfileView::ProfileView(const QString &name, QWebEngineProfile *profile, QSetti
connectSetting(ui->printElementBackgrounds, m_profile, QWebEngineSettings::PrintElementBackgrounds);
// cookies tab
- for(const auto &data : profile->property("cookies").toList()) {
- for(const auto &cookie : QNetworkCookie::parseCookies(data.toByteArray())) {
+ for(auto &raw_cookies : profile->property("cookies").toList()) {
+ for(auto &cookie : QNetworkCookie::parseCookies(raw_cookies.toByteArray())) {
cookieAdded(cookie);
}
}
diff --git a/plugins/ProfileEditor/forms/settingstable.cpp b/plugins/ProfileEditor/forms/settingstable.cpp
index 6cfe144..88781a7 100644
--- a/plugins/ProfileEditor/forms/settingstable.cpp
+++ b/plugins/ProfileEditor/forms/settingstable.cpp
@@ -47,7 +47,7 @@ void SettingsTable::connect(QSettings *settings, const QString &section)
setItem(row, 1, new QTableWidgetItem("value"));
});
- QObject::connect(removeBtn, &QToolButton::clicked, [this, settings, section]() {
+ QObject::connect(removeBtn, &QToolButton::clicked, settings, [this, settings, section]() {
settings->beginGroup(section);
const int row = currentRow();
@@ -60,7 +60,7 @@ void SettingsTable::connect(QSettings *settings, const QString &section)
settings->endGroup();
});
- QObject::connect(this, &QTableWidget::cellChanged, [this, settings, section](int row, int column) {
+ QObject::connect(this, &QTableWidget::cellChanged, settings, [this, settings, section](int row, int column) {
// no value has been created yet
if(item(row, 1) == nullptr) {
return;