+ if(profileDialog)
+ {
+ qDebug() << "__Settings kill: profileDialog";
+ delete profileDialog;
+ profileDialog = NULL;
+ }
+}
+
+/**
+ * This slot function called when ever profile button clicked.
+ * Open profile dialog.
+ */
+void SettingsDialog::on_pushButtonProfile_clicked()
+{
+ if(!profileDialog)
+ {
+ profileDialog = new ProfileDialog(this);
+ }
+ connect(profileDialog, SIGNAL(saveprofile()), this, SLOT(saveProfile()));
+ connect(profileDialog, SIGNAL(rejected()), this, SLOT(killDialog()));
+ profileDialog->show();
+}
+
+void SettingsDialog::saveProfile()
+{
+ emit saveprofile();