From: Eric Bollengier Date: Fri, 1 Dec 2006 14:12:54 +0000 (+0000) Subject: ebl fix X-Git-Tag: Release-2.0.0~192 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=abcfed9ed138508cba2fa62a14d2564797604405;p=bacula%2Fbacula ebl fix git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3725 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/brestore/brestore.pl b/gui/brestore/brestore.pl index 9c0b05ee59..d5c33a33bb 100755 --- a/gui/brestore/brestore.pl +++ b/gui/brestore/brestore.pl @@ -1277,6 +1277,10 @@ use File::Temp qw/tempfile/; sub on_go_button_clicked { my $self = shift; + unless (scalar(@{$self->{restore_list}->{data}})) { + new DlgWarn("No file to restore"); + return 0; + } my $bsr = $self->create_filelist(); my ($fh, $filename) = tempfile(); $fh->print($bsr);