[chirp_devel] [PATCH] Add an open dialog filter for all files. #4359
Tom Hayward
Mon Jan 2 17:40:54 PST 2017
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1483407623 28800
# Mon Jan 02 17:40:23 2017 -0800
# Node ID e345bcd404d0cadb20d294e48f87863b7aeb1d84
# Parent 1f9ff67ec2cdfe4ba55cb98fb741be712f3ebaf6
Add an open dialog filter for all files. #4359
diff -r 1f9ff67ec2cd -r e345bcd404d0 chirp/ui/mainapp.py
--- a/chirp/ui/mainapp.py Tue Sep 20 19:34:00 2016 -0400
+++ b/chirp/ui/mainapp.py Mon Jan 02 17:40:23 2017 -0800
@@ -315,7 +315,8 @@
def do_open(self, fname=None, tempname=None):
if not fname:
- types = [(_("CHIRP Radio Images") + " (*.img)", "*.img"),
+ types = [(_("All files") + " (*.*)", "*"),
+ (_("CHIRP Radio Images") + " (*.img)", "*.img"),
(_("CHIRP Files") + " (*.chirp)", "*.chirp"),
(_("CSV Files") + " (*.csv)", "*.csv"),
(_("DAT Files") + " (*.dat)", "*.dat"),
@@ -786,7 +787,8 @@
return True
def do_import(self):
- types = [(_("CHIRP Files") + " (*.chirp)", "*.chirp"),
+ types = [(_("All files") + " (*.*)", "*"),
+ (_("CHIRP Files") + " (*.chirp)", "*.chirp"),
(_("CHIRP Radio Images") + " (*.img)", "*.img"),
(_("CSV Files") + " (*.csv)", "*.csv"),
(_("DAT Files") + " (*.dat)", "*.dat"),
More information about the chirp_devel
mailing list