From 41ae6bf19122a25053a19fb9808d92d0d5f6aa1a Mon Sep 17 00:00:00 2001 From: AlexandraTrifan Date: Fri, 20 Dec 2024 14:12:46 +0200 Subject: [PATCH] core: change the clicked signal argument to see if the open btn is fixed. Signed-off-by: AlexandraTrifan --- core/src/scopypreferencespage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/scopypreferencespage.cpp b/core/src/scopypreferencespage.cpp index c8bf42f718..8a90342c44 100644 --- a/core/src/scopypreferencespage.cpp +++ b/core/src/scopypreferencespage.cpp @@ -165,8 +165,9 @@ QWidget *ScopyPreferencesPage::buildSaveSessionPreference() QPushButton *navigateBtn = new QPushButton("Open", this); Style::setStyle(navigateBtn, style::properties::button::borderButton); navigateBtn->setMaximumWidth(Style::getDimension(json::global::unit_5)); - connect(navigateBtn, &QPushButton::clicked, this, - [=]() { QDesktopServices::openUrl(scopy::config::settingsFolderPath()); }); + connect(navigateBtn, &QPushButton::clicked, []() { + QDesktopServices::openUrl(scopy::config::settingsFolderPath()); + }); lay->addWidget(navigateBtn); return w; }