fixed bug 1183078 (Media file list disappears on restart)

bzr-revno: 2281
This commit is contained in:
Andreas Preikschat 2013-07-20 06:54:40 +01:00 committed by Tim Bentley
commit 6257d2c9bb

View File

@ -308,12 +308,12 @@ class Plugin(QtCore.QObject):
Perform tasks on application startup
"""
# FIXME: Remove after 2.2 release.
# This is needed to load the list of images/media/presentation from the config saved
# before the settings rewrite.
# This is needed to load the list of media/presentation from the config saved before the settings rewrite.
if self.media_item_class is not None and self.name != u'images':
loaded_list = Settings().get_files_from_config(self)
# Now save the list to the config using our Settings class.
Settings().setValue(u'%s/%s files' % (self.settings_section, self.name), loaded_list)
if loaded_list:
Settings().setValue(u'%s/%s files' % (self.settings_section, self.name), loaded_list)
def uses_theme(self, theme):
"""