summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:05 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:05 +0000
commit4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a (patch)
treefbccca7f83524763e98e0e7a7b6ff7e33b329972
parent7d16e8e520c2b3b9e42cfd413632ebe6253dbf63 (diff)
downloadmgaonline-4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a.tar
mgaonline-4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a.tar.gz
mgaonline-4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a.tar.bz2
mgaonline-4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a.tar.xz
mgaonline-4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a.zip
(get_extmaint_authentication) fix getting password when not embedded
in mcc (got broken when we fixed getting password from within mcc (r265219))
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet-extended-maintenance-helper9
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4722279e..7589af70 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- mdkapplet-extended-maintenance-helper
o better banner titles
+ o fix getting password when not embedded in mcc
- mdkapplet
o better notification message for no longuer supported distro
diff --git a/mdkapplet-extended-maintenance-helper b/mdkapplet-extended-maintenance-helper
index a1dea978..44eb16d9 100755
--- a/mdkapplet-extended-maintenance-helper
+++ b/mdkapplet-extended-maintenance-helper
@@ -77,6 +77,12 @@ sub get_extmaint_authentication() {
$password_w = gtknew('Entry');
$password_w->set_visibility(0);
+ # when not embedded:
+ my $password_restrieved;
+ $w->{real_window}->signal_connect(destroy => sub {
+ $password = $password_w->get_text;
+ $password_restrieved = 1;
+ });
my $url = eval { get_extended_maintenance_url() };
if (my $err = $@) {
@@ -119,7 +125,8 @@ sub get_extmaint_authentication() {
]);
my $email = $email_w->get_text;
- $password = $password_w->get_text;
+ # when embedded:
+ $password = $password_w->get_text if !$password_restrieved;
if ($res) {
if ($email && $password) {
add_extmaint_medium($email, $password);