File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Modules/Scripted/SampleData Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,15 @@ def __init__(self, parent):
4949
5050 def addMenu (self ):
5151 actionIcon = self .parent .icon
52- a = qt .QAction (actionIcon , 'Download Sample Data' , slicer .util .mainWindow ())
52+ mTranslate = slicer .app .translate ("qSlicerWelcomeModuleWidget" , "Download Sample Data" )
53+ a = qt .QAction (actionIcon , mTranslate , slicer .util .mainWindow ())
5354 a .setToolTip ('Go to the SampleData module to download data from the network' )
5455 a .connect ('triggered()' , self .select )
5556
5657 fileMenu = slicer .util .lookupTopLevelWidget ('FileMenu' )
5758 if fileMenu :
5859 for action in fileMenu .actions ():
59- if action .text == 'Save ' :
60+ if action .name == 'FileSaveSceneAction ' :
6061 fileMenu .insertAction (action ,a )
6162
6263
You can’t perform that action at this time.
0 commit comments