Skip to content

Commit

Permalink
GUI: destroy dialogue after we have harvested the widgets
Browse files Browse the repository at this point in the history
Otherwise we don't get the values

Updates #770
  • Loading branch information
shawnlaffan committed Nov 1, 2020
1 parent 3ba6567 commit 5b5579a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Biodiverse/GUI/ParametersTable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sub fill {
$label->set_alignment(0, 0.5);
#$label->set_text( $label_text );

my $fill_flags = 'fill';
#my $fill_flags = 'fill';
my $fill_flags = [qw/expand fill/];
if ($param->{type} =~ 'text') {
$fill_flags = ['expand', 'fill']
Expand Down
5 changes: 2 additions & 3 deletions lib/Biodiverse/GUI/RemapGUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ sub pre_remap_dlg {
$dlg->show_all;
my $response = $dlg->run();

$dlg->destroy();


# The dialog has now finished, process the response and figure out
# what to return.
my %results;
Expand Down Expand Up @@ -277,6 +274,8 @@ sub pre_remap_dlg {
%results = (remap_type => "none");
}

$dlg->destroy();

return wantarray ? %results : \%results;
}

Expand Down

0 comments on commit 5b5579a

Please sign in to comment.