diff --git a/openlp.pyw b/openlp.pyw index f3bd74d5f..7c7f8f373 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -33,7 +33,7 @@ filename=u'openlp.log' log = logging.getLogger() log.setLevel(logging.INFO) -logfile = logging.handlers.TimedRotatingFileHandler(filename , 'midnight', 1, backupCount=5) +logfile = logging.handlers.RotatingFileHandler(filename ,maxBytes=200000, backupCount=5) logfile.setLevel(logging.DEBUG) logfile.setFormatter(logging.Formatter(u'%(asctime)s %(name)-15s %(levelname)-8s %(message)s')) diff --git a/openlp/plugins/bibles/lib/mediaitem.py b/openlp/plugins/bibles/lib/mediaitem.py index d070f265a..bd5b057f5 100644 --- a/openlp/plugins/bibles/lib/mediaitem.py +++ b/openlp/plugins/bibles/lib/mediaitem.py @@ -341,7 +341,7 @@ class BibleMediaItem(MediaManagerItem): def generateSlideData(self, service_item): log.debug(u'generating slide data') items = self.ListView.selectedIndexes() - if len(items) > 1: + if len(items) ==0: return False old_chapter = u'' raw_slides = [] diff --git a/openlp/plugins/custom/lib/mediaitem.py b/openlp/plugins/custom/lib/mediaitem.py index d5a9b6f7f..d264d52d4 100644 --- a/openlp/plugins/custom/lib/mediaitem.py +++ b/openlp/plugins/custom/lib/mediaitem.py @@ -143,27 +143,6 @@ class CustomMediaItem(MediaManagerItem): row = self.ListView.row(item) self.ListView.takeItem(row) -# def onCustomPreviewClick(self): -# log.debug(u'Custom Preview Requested') -# service_item = ServiceItem(self.parent) -# service_item.addIcon(u':/media/media_song.png') -# self.generateSlideData(service_item) -# self.parent.preview_controller.addServiceItem(service_item) -# -# def onCustomLiveClick(self): -# log.debug(u'Custom Live Requested') -# service_item = ServiceItem(self.parent) -# service_item.addIcon(u':/media/media_song.png') -# self.generateSlideData(service_item) -# self.parent.live_controller.addServiceItem(service_item) -# -# def onCustomAddClick(self): -# log.debug(u'Custom Add Requested') -# service_item = ServiceItem(self.parent) -# service_item.addIcon(u':/media/media_song.png') -# self.generateSlideData(service_item) -# self.parent.service_manager.addServiceItem(service_item) - def generateSlideData(self, service_item): raw_slides =[] raw_footer = [] diff --git a/openlp/plugins/images/lib/mediaitem.py b/openlp/plugins/images/lib/mediaitem.py index 6644d46ea..467ab20e2 100644 --- a/openlp/plugins/images/lib/mediaitem.py +++ b/openlp/plugins/images/lib/mediaitem.py @@ -95,7 +95,7 @@ class ImageMediaItem(MediaManagerItem): def generateSlideData(self, service_item): items = self.ListView.selectedIndexes() - if len(items) > 1: + if len(items) == 0: return False service_item.title = u'Image(s)' for item in items: