Remove the "print_label" construct from the reports. The only label is "Open with default viewer". No need to check the mime type or to look for the default application because Gramps uses the host OS to figure it out for the user.
svn: r12351
This commit is contained in:
@@ -43,11 +43,8 @@ import BaseDoc
|
||||
from gen.plug import PluginManager
|
||||
import ImgManip
|
||||
import Errors
|
||||
import Mime
|
||||
import Utils
|
||||
|
||||
_apptype = 'text/x-tex'
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# Convert from roman to arabic numbers
|
||||
@@ -646,17 +643,5 @@ class LaTeXDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
|
||||
# Register plugins
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
print_label = None
|
||||
pmgr = PluginManager.get_instance()
|
||||
try:
|
||||
mprog = Mime.get_application(_apptype)
|
||||
|
||||
if Utils.search_for(mprog[0]):
|
||||
print_label = _("Open in %(program_name)s") % { 'program_name':
|
||||
mprog[1]}
|
||||
else:
|
||||
print_label = None
|
||||
except:
|
||||
print_label = None
|
||||
|
||||
pmgr.register_text_doc(_('LaTeX'), LaTeXDoc, 1, 0, ".tex", print_label)
|
||||
pmgr.register_text_doc(_('LaTeX'), LaTeXDoc, 1, 0, ".tex")
|
||||
|
Reference in New Issue
Block a user