summaryrefslogtreecommitdiffstats
path: root/mdkapplet-extended-maintenance-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-02-02 16:56:05 +0000
committerThierry Vignaud <tv@mandriva.org>2010-02-02 16:56:05 +0000
commit5900bfaccd5d1f4549e4028b18afdd9ea90807f0 (patch)
treeea783066c265c34235f94f12a4c802b3acdd6e6c /mdkapplet-extended-maintenance-helper
parentc6fec36c73dbe69ed2a637a870dc0cc844ab393e (diff)
downloadmgaonline-5900bfaccd5d1f4549e4028b18afdd9ea90807f0.tar
mgaonline-5900bfaccd5d1f4549e4028b18afdd9ea90807f0.tar.gz
mgaonline-5900bfaccd5d1f4549e4028b18afdd9ea90807f0.tar.bz2
mgaonline-5900bfaccd5d1f4549e4028b18afdd9ea90807f0.tar.xz
mgaonline-5900bfaccd5d1f4549e4028b18afdd9ea90807f0.zip
(get_extmaint_authentication) remember the email when an error occured
(should probably be applied to other authenticated helpers too or we should move to some common engine)
Diffstat (limited to 'mdkapplet-extended-maintenance-helper')
-rwxr-xr-xmdkapplet-extended-maintenance-helper5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet-extended-maintenance-helper b/mdkapplet-extended-maintenance-helper
index c698a29f..b481104e 100755
--- a/mdkapplet-extended-maintenance-helper
+++ b/mdkapplet-extended-maintenance-helper
@@ -49,6 +49,7 @@ foreach my $opt (@ARGV) {
}
}
my ($version) = @ARGV;
+my $email;
$version or die "usage: $0 <distrib_version>\n";
@@ -121,7 +122,7 @@ sub get_extmaint_authentication() {
new_link_button('https://my.mandriva.com/info', N("More information on your user account")))
]),
gtknew('Table', col_spacings => 5, row_spacings => 5, children => [
- [ N("Your email"), $email_w = gtknew('Entry') ],
+ [ N("Your email"), $email_w = gtknew('Entry', text => $email) ],
[ N("Your password"), $password_w ],
]),
gtknew('HButtonBox', layout => 'start', children_tight => [
@@ -131,7 +132,7 @@ sub get_extmaint_authentication() {
create_okcancel($w, N("Next"), N("Cancel")),
]);
- my $email = $email_w->get_text;
+ $email = $email_w->get_text;
# when embedded:
$password = $password_w->get_text if !$password_restrieved;
if ($res) {