summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index de7e56b2..04ff8c6c 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -97,7 +97,7 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"),
);
$eventbox->signal_connect(button_press_event => sub {
if ($_[1]->button == 1) {
- if (-e conffile) { showMainWindow() } else { configure() }
+ if (-e $conffile) { showMainWindow() } else { configure() }
}
$_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
});
@@ -196,7 +196,8 @@ sub cronUpdate {
sub lastCheck {
my %h = getVarsFromSh($conffile);
my ($t, $l);
- $t = $h{LASTCHECK} =~ s/\_/ /;
+ $t = $h{LASTCHECK} ;
+ $t =~ s/\_/ /g;
$t ? $t : N("No check")
}
sub checkUpdates {