forked from openlp/openlp
- small fixes
This commit is contained in:
parent
93ae2b9cf8
commit
68a934de71
@ -144,11 +144,6 @@ class CustomMediaItem(MediaManagerItem):
|
||||
self.parent.custommanager.delete_custom(id)
|
||||
for row in row_list:
|
||||
self.ListView.takeItem(row)
|
||||
item = self.ListView.currentItem()
|
||||
item_id = (item.data(QtCore.Qt.UserRole)).toInt()[0]
|
||||
self.parent.custommanager.delete_object(CustomSlide, item_id)
|
||||
row = self.ListView.row(item)
|
||||
self.ListView.takeItem(row)
|
||||
|
||||
def generateSlideData(self, service_item, item=None):
|
||||
raw_slides = []
|
||||
|
@ -131,8 +131,8 @@ class ImageMediaItem(MediaManagerItem):
|
||||
#if not present do not worry
|
||||
pass
|
||||
self.ListView.takeItem(row)
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
|
||||
def loadList(self, list):
|
||||
for file in list:
|
||||
|
@ -147,8 +147,8 @@ class MediaMediaItem(MediaManagerItem):
|
||||
row_list.sort(reverse=True)
|
||||
for row in row_list:
|
||||
self.ListView.takeItem(row)
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
|
||||
def loadList(self, list):
|
||||
for file in list:
|
||||
|
@ -194,8 +194,8 @@ class PresentationMediaItem(MediaManagerItem):
|
||||
doc.close_presentation()
|
||||
for row in row_list:
|
||||
self.ListView.takeItem(row)
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
|
||||
def generateSlideData(self, service_item, item=None):
|
||||
items = self.ListView.selectedIndexes()
|
||||
|
Loading…
Reference in New Issue
Block a user