aboutsummaryrefslogtreecommitdiff
path: root/src/forms/profilesdialog.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-08-04 13:12:32 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-08-04 13:12:32 +0200
commita85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91 (patch)
tree81cc123c4afbaf726fbc4a8a6b87d50732432b4b /src/forms/profilesdialog.cpp
parentUpdated documentation (diff)
downloadsmolbote-a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91.tar.xz
Profile window fixes
Diffstat (limited to 'src/forms/profilesdialog.cpp')
-rw-r--r--src/forms/profilesdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/forms/profilesdialog.cpp b/src/forms/profilesdialog.cpp
index 34bd063..557d865 100644
--- a/src/forms/profilesdialog.cpp
+++ b/src/forms/profilesdialog.cpp
@@ -51,7 +51,9 @@ ProfilesDialog::ProfilesDialog(MainWindow *window, QWidget *parent) :
connect(ui->listWidget, SIGNAL(currentRowChanged(int)), this, SLOT(viewProfile(int)));
connect(ui->new_toolButton, SIGNAL(released()), this, SLOT(newProfile()));
- connect(this, SIGNAL(accepted()), this, SLOT(loadSelectedProfile()));
+ disconnect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
+ connect(ui->buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(loadSelectedProfile()));
+ connect(ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), m_view, SLOT(updateProfile()));
loadProfiles();
}