openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #24473
[Bug 1385979] Re: Settings form -- list_item variable issue
Simply by opening up the configuration settings dialog box. For me, it
starts happending after the second time. I'm using Kubuntu 14.04 64-bit
if that helps.
** Description changed:
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
+ # Check if item exists
if not list_item:
return
--
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 exists
if not list_item:
return
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1385979/+subscriptions
References