summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);