Comment 5 for bug 1842523

Revision history for this message
Tim Bentley (trb143) wrote :

2019-09-03 19:22:40,041 MainThread openlp.core.ui.servicemanager.ServiceManager ERROR Exception in add_service_item : 'QIcon' object is not subscriptable
2019-09-03 19:22:40,075 MainThread openlp.core.common.registry ERROR OpenLP Error trace
   File run_openlp.py at line 87
  called start()
   File run_openlp.py at line 83
  called main()
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\app.py at line 454
  called sys.exit(application.run(qt_args))
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\app.py at line 145
  called return self.exec()
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\app.py at line 80
  called result = QtWidgets.QApplication.exec()
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\widgets\views.py at line 335
  called drag.exec(QtCore.Qt.CopyAction)
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\ui\servicemanager.py at line 1589
  called Registry().execute('{plugin}_add_service_item'.format(plugin=plugin), replace)
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\registry.py at line 132
  called trace_error_handler(log)
   File C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\__init__.py at line 101
  called for tb in traceback.extract_stack():
2019-09-03 19:22:40,075 MainThread openlp.core.common.registry ERROR Exception for function <bound method Plugin.process_add_service_event of <openlp.plugins.media.mediaplugin.MediaPlugin object at 0x12B2A5F0>>
Traceback (most recent call last):
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\registry.py", line 127, in execute
    result = function(*args, **kwargs)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\lib\plugin.py", line 274, in process_add_service_event
    self.media_item.on_add_click()
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\lib\mediamanageritem.py", line 576, in on_add_click
    self.add_to_service(item, position=drop_position)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\lib\mediamanageritem.py", line 600, in add_to_service
    self.service_manager.add_service_item(service_item, replace=replace, position=position)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\mixins.py", line 69, in wrapped
    raise e
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\mixins.py", line 62, in wrapped
    return func(*args, **kwargs)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\ui\servicemanager.py", line 1384, in add_service_item
    self.repaint_service_list(self.drop_position, -1)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\mixins.py", line 69, in wrapped
    raise e
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\common\mixins.py", line 62, in wrapped
    return func(*args, **kwargs)
  File "C:\Users\Kathy\Documents\Church\source\python\openlp_trunk_2898\openlp\openlp\core\ui\servicemanager.py", line 1249, in repaint_service_list
    child.setText(0, text[:40])
TypeError: 'QIcon' object is not subscriptable
2019-09-03 19:22:49,444 MainThread openlp.core.ui.servicemanager.ServiceManager DEBUG Entering make_live
2019-09-03 19:22:49,444 MainThread openlp.core.ui.servicemanager.ServiceManager DEBUG Entering find_service_item