summaryrefslogtreecommitdiff
path: root/src/remoteauth/remoteauthdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/remoteauth/remoteauthdialog.cpp')
-rw-r--r--src/remoteauth/remoteauthdialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remoteauth/remoteauthdialog.cpp b/src/remoteauth/remoteauthdialog.cpp
index db154c4..ea250d6 100644
--- a/src/remoteauth/remoteauthdialog.cpp
+++ b/src/remoteauth/remoteauthdialog.cpp
@@ -24,6 +24,7 @@ RemoteAuthDialog::RemoteAuthDialog(Gtk::Window &parent)
m_bbox.set_layout(Gtk::BUTTONBOX_END);
m_ra.signal_fingerprint().connect(sigc::mem_fun(*this, &RemoteAuthDialog::OnFingerprint));
+ m_ra.signal_token().connect(sigc::mem_fun(*this, &RemoteAuthDialog::OnToken));
m_ra.Start();
@@ -77,3 +78,9 @@ void RemoteAuthDialog::OnFingerprint(const std::string &fingerprint) {
std::string RemoteAuthDialog::GetToken() {
return m_token;
}
+
+void RemoteAuthDialog::OnToken(const std::string &token) {
+ m_token = token;
+ m_ra.Stop();
+ response(Gtk::RESPONSE_OK);
+}