summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-03 14:05:37 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-03 14:05:37 +0000
commitcd014aec5d83939b2a7cc479ac9ec36f975cef71 (patch)
treeee04d859a1c7a181d48d1d5b25943a0d5933da71 /mdkapplet
parent3131afc3fc913934425909526bf4ee75ee8cd72b (diff)
downloadmgaonline-cd014aec5d83939b2a7cc479ac9ec36f975cef71.tar
mgaonline-cd014aec5d83939b2a7cc479ac9ec36f975cef71.tar.gz
mgaonline-cd014aec5d83939b2a7cc479ac9ec36f975cef71.tar.bz2
mgaonline-cd014aec5d83939b2a7cc479ac9ec36f975cef71.tar.xz
mgaonline-cd014aec5d83939b2a7cc479ac9ec36f975cef71.zip
(refresh_gui) prevent crashing
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
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);