Skip to content

Commit a6360b5

Browse files
committed
pod fix
1 parent 5fc8acc commit a6360b5

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

Prima/Dialog/FileDialog.pm

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,17 +1759,21 @@ Prima::Dialog::FileDialog - File system-related widgets and dialogs
17591759
['All' => '*']
17601760
]
17611761
);
1762-
print $open-> fileName, " is to be opened\n" if $open-> execute;
17631762
1764-
# save file
1765-
my $save = Prima::Dialog::SaveDialog-> new(
1766-
fileName => $open-> fileName,
1767-
);
1768-
print $save-> fileName, " is to be saved\n" if $save-> execute;
1769-
1770-
# open several files
1771-
$open-> multiSelect(1);
1772-
print $open-> fileName, " are to be opened\n" if $open-> execute;
1763+
if ($open-> execute) {
1764+
print $open-> fileName, " is to be opened\n";
1765+
1766+
# save file
1767+
my $save = Prima::Dialog::SaveDialog-> new(
1768+
fileName => $open-> fileName,
1769+
);
1770+
if ($save-> execute) {
1771+
print $save-> fileName, " is to be saved\n";
1772+
# open several files
1773+
$open-> multiSelect(1);
1774+
print $open-> fileName, " are to be opened\n" if $open-> execute;
1775+
}
1776+
}
17731777
17741778
=for podview <img src="filedlg.gif">
17751779
@@ -1934,6 +1938,8 @@ Selects the index in the L<filter> array, which is the currently selected file t
19341938
19351939
Selects whether the user can select several ( 1 ) or one ( 0 ) file.
19361940
1941+
Default value: 0
1942+
19371943
See also: L<fileName>.
19381944
19391945
=item noReadOnly BOOLEAN

0 commit comments

Comments
 (0)