Permalink
Browse files

fixed simple config load bug

  • Loading branch information...
treygreer committed Jan 29, 2014
1 parent 4251917 commit 0dba3dee58495314550d11b4323f2df6a6f08469
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Slic3r/GUI/SimpleTab.pm
@@ -71,7 +71,7 @@ sub load_config {
my $self = shift;
my ($config) = @_;
- foreach my $opt_key (grep $self->{config}->has($_), keys %$config) {
+ foreach my $opt_key (grep $self->{config}->has($_), @{$config->get_keys}) {
my $value = $config->get($opt_key);
$self->{config}->set($opt_key, $value);
$_->set_value($opt_key, $value) for @{$self->{optgroups}};

0 comments on commit 0dba3de

Please sign in to comment.