[SCM] ktp-auth-handler packaging branch, master, updated. debian/15.12.1-2-282-g080758e

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:58:22 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-auth-handler.git;a=commitdiff;h=25641b5

The following commit has been merged in the master branch:
commit 25641b5b72bef6e9feab186cdde9f6b2275e8ecb
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Thu Oct 27 01:24:02 2011 +0200

    Set the password in the dialog if it was saved before
---
 password-prompt.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/password-prompt.cpp b/password-prompt.cpp
index 36ab1d6..14a7329 100644
--- a/password-prompt.cpp
+++ b/password-prompt.cpp
@@ -18,6 +18,7 @@
 
 #include "password-prompt.h"
 #include "ui_password-prompt.h"
+#include "common/wallet-interface.h"
 
 #include <KIcon>
 #include <KDebug>
@@ -33,6 +34,11 @@ PasswordPrompt::PasswordPrompt(const Tp::AccountPtr &account, QWidget *parent)
     ui->accountName->setText(account->displayName());
     ui->accountIcon->setPixmap(KIcon("dialog-password").pixmap(60,60));
     ui->title->setPixmap(KIcon(account->iconName()).pixmap(22,22));
+
+    KTelepathy::WalletInterface wallet(this->effectiveWinId());
+    if (wallet.hasPassword(account)) {
+        ui->passwordLineEdit->setText(wallet.password(account));
+    }
 }
 
 PasswordPrompt::~PasswordPrompt()

-- 
ktp-auth-handler packaging



More information about the pkg-kde-commits mailing list