mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-03 10:29:19 +00:00
Export now runs the suggested filename through a filter to get rid
of characters that are not allowed in various operating systems (such as "/", "\", or ":").
This commit is contained in:
parent
6b35db3528
commit
035d2cf73a
@ -29,6 +29,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.webcodepro.applecommander.storage.AppleUtil;
|
||||
import com.webcodepro.applecommander.storage.AppleWorksWordProcessorFileFilter;
|
||||
import com.webcodepro.applecommander.storage.ApplesoftFileFilter;
|
||||
import com.webcodepro.applecommander.storage.BinaryFileFilter;
|
||||
@ -625,7 +626,8 @@ public class DiskExplorerTab {
|
||||
filename = fileDialog.open();
|
||||
directory = fileDialog.getFilterPath();
|
||||
} else {
|
||||
filename = directory + File.separator + fileFilter.getSuggestedFileName(fileEntry);
|
||||
filename = directory + File.separator + AppleUtil.
|
||||
getNiceFilename(fileFilter.getSuggestedFileName(fileEntry));
|
||||
}
|
||||
if (filename != null) {
|
||||
userPreferences.setExportDirectory(directory);
|
||||
|
Loading…
Reference in New Issue
Block a user