From a89f57a2dfc1f1d12efb0d866dfc8f3f0919a025 Mon Sep 17 00:00:00 2001 From: thez3ro Date: Wed, 3 Jan 2018 01:02:44 +0100 Subject: [PATCH] Fix sshagent autouic --- src/sshagent/AgentSettingsWidget.cpp | 5 +++++ src/sshagent/AgentSettingsWidget.h | 4 +--- src/sshagent/CMakeLists.txt | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/sshagent/AgentSettingsWidget.cpp b/src/sshagent/AgentSettingsWidget.cpp index e8bc75ae1..81b6808fe 100644 --- a/src/sshagent/AgentSettingsWidget.cpp +++ b/src/sshagent/AgentSettingsWidget.cpp @@ -17,6 +17,7 @@ */ #include "AgentSettingsWidget.h" +#include "ui_AgentSettingsWidget.h" #include "core/Config.h" AgentSettingsWidget::AgentSettingsWidget(QWidget* parent) @@ -26,6 +27,10 @@ AgentSettingsWidget::AgentSettingsWidget(QWidget* parent) m_ui->setupUi(this); } +AgentSettingsWidget::~AgentSettingsWidget() +{ +} + void AgentSettingsWidget::loadSettings() { m_ui->enableSSHAgentCheckBox->setChecked(config()->get("SSHAgent", false).toBool()); diff --git a/src/sshagent/AgentSettingsWidget.h b/src/sshagent/AgentSettingsWidget.h index b6462daa0..90d1b1973 100644 --- a/src/sshagent/AgentSettingsWidget.h +++ b/src/sshagent/AgentSettingsWidget.h @@ -21,7 +21,6 @@ #include #include -#include "ui_AgentSettingsWidget.h" namespace Ui { class AgentSettingsWidget; @@ -32,8 +31,7 @@ class AgentSettingsWidget : public QWidget Q_OBJECT public: explicit AgentSettingsWidget(QWidget* parent = nullptr); - -signals: + ~AgentSettingsWidget(); public slots: void loadSettings(); diff --git a/src/sshagent/CMakeLists.txt b/src/sshagent/CMakeLists.txt index 1733e21b1..5d2ad6e3b 100644 --- a/src/sshagent/CMakeLists.txt +++ b/src/sshagent/CMakeLists.txt @@ -1,4 +1,6 @@ if(WITH_XC_SSHAGENT) + include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) + set(sshagent_SOURCES bcrypt_pbkdf.cpp blowfish.c