- small fixes

This commit is contained in:
andreas 2010-06-28 22:00:35 +02:00
parent 93ae2b9cf8
commit 68a934de71
4 changed files with 6 additions and 11 deletions

View File

@ -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 = []

View File

@ -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:

View File

@ -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:

View File

@ -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()