mirror of https://gitlab.com/openlp/openlp.git
Attempt to fix #1878 by checking if the service item exists first
This commit is contained in:
parent
6d636f3235
commit
2639c7cd00
|
@ -1265,8 +1265,8 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
|
||||||
fallback_to_windowed = display_above_horizontal or display_above_vertical \
|
fallback_to_windowed = display_above_horizontal or display_above_vertical \
|
||||||
or display_beyond_horizontal or display_beyond_vertical
|
or display_beyond_horizontal or display_beyond_vertical
|
||||||
if fallback_to_windowed:
|
if fallback_to_windowed:
|
||||||
if self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or self.service_item.is_media() or \
|
if self.service_item and (self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or
|
||||||
self.service_item.is_command():
|
self.service_item.is_media() or self.service_item.is_command()):
|
||||||
if self.service_item.is_command():
|
if self.service_item.is_command():
|
||||||
# Attempting to get screenshot from command handler
|
# Attempting to get screenshot from command handler
|
||||||
service_item_name = self.service_item.name.lower()
|
service_item_name = self.service_item.name.lower()
|
||||||
|
|
Loading…
Reference in New Issue