Use tab title in close confirmation dialog

This commit is contained in:
Henrik Brix Andersen 2012-06-24 10:22:44 +02:00
parent 30d88d7ffa
commit f07ad630c4

View file

@ -227,8 +227,8 @@ sub on_close {
my $self = shift; my $self = shift;
my @dirty; my @dirty;
foreach (keys %{$self->{options_tabs}}) { foreach (values %{$self->{options_tabs}}) {
push (@dirty, $_) if $self->{options_tabs}{$_}->is_dirty; push (@dirty, $_->title) if $_->is_dirty;
} }
if (@dirty) { if (@dirty) {