diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-27 15:00:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-27 15:00:05 +0000 |
commit | 4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a (patch) | |
tree | fbccca7f83524763e98e0e7a7b6ff7e33b329972 | |
parent | 7d16e8e520c2b3b9e42cfd413632ebe6253dbf63 (diff) | |
download | mgaonline-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-- | NEWS | 1 | ||||
-rwxr-xr-x | mdkapplet-extended-maintenance-helper | 9 |
2 files changed, 9 insertions, 1 deletions
@@ -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); |