aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/settingstable.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-05-26 22:23:25 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-05-28 19:43:45 +0300
commit9c4dd932c6d692178bb8d5265c634126cb415767 (patch)
tree527300f8e710859965c142aed4e779a16b9d4ab6 /plugins/ProfileEditor/forms/settingstable.cpp
parentUpdate ProfileEditor plugin (diff)
downloadsmolbote-9c4dd932c6d692178bb8d5265c634126cb415767.tar.xz
Turn on more warnings by default
- fix clazy warnings - fix various other compiler warnings - bugfix: connect profiles' downloadRequested signal
Diffstat (limited to 'plugins/ProfileEditor/forms/settingstable.cpp')
-rw-r--r--plugins/ProfileEditor/forms/settingstable.cpp4
1 files changed, 2 insertions, 2 deletions
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;