180 for category, ref in e5App().getPluginObjects(): |
180 for category, ref in e5App().getPluginObjects(): |
181 if hasattr(ref, "getActions"): |
181 if hasattr(ref, "getActions"): |
182 actions = ref.getActions() |
182 actions = ref.getActions() |
183 for act in actions: |
183 for act in actions: |
184 __saveShortcut(act, category, prefClass) |
184 __saveShortcut(act, category, prefClass) |
185 |
|
186 try: |
|
187 category = e5App().getObject("DummyHelpViewer")\ |
|
188 .getActionsCategory() |
|
189 for act in e5App().getObject("DummyHelpViewer").getActions(): |
|
190 __saveShortcut(act, category, prefClass) |
|
191 except KeyError: |
|
192 # no QtWebKit available |
|
193 pass |
|
194 |
185 |
195 else: |
186 else: |
196 helpViewerCategory = helpViewer.getActionsCategory() |
187 helpViewerCategory = helpViewer.getActionsCategory() |
197 |
188 |
198 # step 1: clear all previously saved shortcuts |
189 # step 1: clear all previously saved shortcuts |
359 |
350 |
360 for category, ref in e5App().getPluginObjects(): |
351 for category, ref in e5App().getPluginObjects(): |
361 if category in shortcuts and hasattr(ref, "getActions"): |
352 if category in shortcuts and hasattr(ref, "getActions"): |
362 actions = ref.getActions() |
353 actions = ref.getActions() |
363 __setAction(actions, shortcuts[category]) |
354 __setAction(actions, shortcuts[category]) |
364 |
|
365 try: |
|
366 if "HelpViewer" in shortcuts: |
|
367 __setAction(e5App().getObject("DummyHelpViewer").getActions(), |
|
368 shortcuts["HelpViewer"]) |
|
369 except KeyError: |
|
370 # no QtWebKit available |
|
371 pass |
|
372 |
355 |
373 else: |
356 else: |
374 category = helpViewer.getActionsCategory() |
357 category = helpViewer.getActionsCategory() |
375 if category in shortcuts: |
358 if category in shortcuts: |
376 __setAction(helpViewer.getActions(), shortcuts[category]) |
359 __setAction(helpViewer.getActions(), shortcuts[category]) |