aboutsummaryrefslogtreecommitdiff
path: root/src/forms/profileview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms/profileview.cpp')
-rw-r--r--src/forms/profileview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/forms/profileview.cpp b/src/forms/profileview.cpp
index 6977b61..5e02179 100644
--- a/src/forms/profileview.cpp
+++ b/src/forms/profileview.cpp
@@ -33,7 +33,7 @@
#include <QFormLayout>
ProfileView::ProfileView(WebEngineProfile *profile, QWidget *parent) :
- QWidget(parent),
+ QDialog(parent),
ui(new Ui::ProfileView)
{
ui->setupUi(this);
@@ -47,7 +47,8 @@ ProfileView::ProfileView(WebEngineProfile *profile, QWidget *parent) :
this->m_profile->clearAllVisitedLinks();
});
- //connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(updateProfile()));
+ connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ProfileView::updateProfile);
+ connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &ProfileView::close);
}
ProfileView::~ProfileView()