From 0ad78eaf55d36f8854f143b3437370fe09755eee Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 16 Jun 2013 16:06:20 +0200 Subject: [PATCH] Return explicit 0 from have_version_check() to avoid wxMenuItem->Enable errors --- lib/Slic3r/GUI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm index 00e56f4fa..d264f73fc 100644 --- a/lib/Slic3r/GUI.pm +++ b/lib/Slic3r/GUI.pm @@ -282,7 +282,8 @@ sub save_settings { sub have_version_check { my $class = shift; - return $Slic3r::have_threads && $Slic3r::build && eval "use LWP::UserAgent; 1"; + # return an explicit 0 + return ($Slic3r::have_threads && $Slic3r::build && eval "use LWP::UserAgent; 1") || 0; } sub check_version {