From 151c651b65783b06e68578a5b0528748aa8eac05 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 3 Oct 2008 16:55:15 +0000 Subject: if there're updates, install regular updates instead of performing distro upgrade on left click --- mdkapplet | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index f8ee74ee..b6f5e1c7 100755 --- a/mdkapplet +++ b/mdkapplet @@ -220,7 +220,11 @@ $icon->signal_connect(activate => sub { updates => \&installUpdates, new_distribution => \&upgrade, ); - $actions{$state_global}->() if ref $actions{$state_global}; + my $action = $state_global; + if ($action eq 'new_distribution' && $sub_state eq 'updates') { + $action = 'updates'; + } + $actions{$action}->() if ref $actions{$action}; }); foreach my $opt (@ARGV) { if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') } -- cgit v1.2.1