Call decode_path() on wxWidgets-supplied datadir. #2710

This commit is contained in:
Alessandro Ranellucci 2015-03-09 15:25:42 +01:00
parent 6185f45815
commit 0d6376f3e6

View file

@ -78,7 +78,7 @@ sub OnInit {
$self->{notifier} = Slic3r::GUI::Notifier->new;
# locate or create data directory
$datadir ||= Wx::StandardPaths::Get->GetUserDataDir;
$datadir ||= Slic3r::decode_path(Wx::StandardPaths::Get->GetUserDataDir);
my $enc_datadir = Slic3r::encode_path($datadir);
Slic3r::debugf "Data directory: %s\n", $datadir;