From cd014aec5d83939b2a7cc479ac9ec36f975cef71 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Apr 2006 14:05:37 +0000 Subject: (refresh_gui) prevent crashing --- mdkapplet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index 14d249fe..987d38da 100755 --- a/mdkapplet +++ b/mdkapplet @@ -194,7 +194,7 @@ sub fork_exec { sub refresh_gui { my ($sens) = @_; !$conf_launched and silentCheck(); $conf_launched = 0; - my $w = $::main_window->window; + my $w = $::main_window->window if $::main_window; $insensitive_while_running_a_child = !$sens; $sens ? gtkset_mousecursor_normal($w) : gtkset_mousecursor_wait($w); $MW_vbox and $MW_vbox->set_sensitive($sens); -- cgit v1.2.1