← Back to team overview

openlp-core team mailing list archive

[Bug 1385979] Re: Settings form -- list_item variable issue

 

Hey Darryl, thanks for catching this. How did you manage to get this
error? Is there a way I can reproduce it?

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1385979

Title:
  Settings form -- list_item variable issue

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  Traceback (most recent call last):
    File "~/Projects/openlp/openlp/core/ui/settingsform.py", line 151, in list_item_changed
      if tab_widget.tab_title == list_item.data(QtCore.Qt.UserRole):
  AttributeError: 'NoneType' object has no attribute 'data'

  This is an easy fix.

  In file settingsform.py find: def list_item_changed(self, item_index)

  Then Replace:
          # Get the item we clicked on
          list_item = self.setting_list_widget.item(item_index)
  With:
          # Get the item we clicked on
          list_item = self.setting_list_widget.item(item_index)
          # Check if item exits
          if not list_item:
              return

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1385979/+subscriptions


References