From 3769a016820cf208f47682f2c0b83291cd49d356 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Mon, 8 Sep 2014 22:48:49 +0100 Subject: [PATCH] Small fixes --- openlp/plugins/remotes/lib/httprouter.py | 2 +- openlp/plugins/remotes/lib/remotetab.py | 3 ++- .../presentations/test_powerpointcontroller.py | 14 ++++++++------ .../presentations/test_pptviewcontroller.py | 12 +++++++----- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/openlp/plugins/remotes/lib/httprouter.py b/openlp/plugins/remotes/lib/httprouter.py index 5e973afd5..07f99cf1b 100644 --- a/openlp/plugins/remotes/lib/httprouter.py +++ b/openlp/plugins/remotes/lib/httprouter.py @@ -505,7 +505,7 @@ class HttpRouter(RegistryProperties): item['text'] = str(frame['text']) item['html'] = str(frame['html']) # Handle images, unless a custom thumbnail is given or if thumbnails is disabled - elif current_item.is_image() and not frame['image'] and Settings().value('remotes/thumbnails'): + elif current_item.is_image() and not frame.get('image', None) and Settings().value('remotes/thumbnails'): item['tag'] = str(index + 1) thumbnail_path = os.path.sep + os.path.join('images', 'thumbnails', frame['title']) item['img'] = urllib.request.pathname2url(thumbnail_path) diff --git a/openlp/plugins/remotes/lib/remotetab.py b/openlp/plugins/remotes/lib/remotetab.py index 1092a03d2..45f13faac 100644 --- a/openlp/plugins/remotes/lib/remotetab.py +++ b/openlp/plugins/remotes/lib/remotetab.py @@ -180,7 +180,8 @@ class RemoteTab(SettingsTab): self.stage_url_label.setText(translate('RemotePlugin.RemoteTab', 'Stage view URL:')) self.live_url_label.setText(translate('RemotePlugin.RemoteTab', 'Live view URL:')) self.twelve_hour_check_box.setText(translate('RemotePlugin.RemoteTab', 'Display stage time in 12h format')) - self.thumbnails_check_box.setText(translate('RemotePlugin.RemoteTab', 'Show thumbnails of non-text slides in remote and stage view.')) + self.thumbnails_check_box.setText(translate('RemotePlugin.RemoteTab', + 'Show thumbnails of non-text slides in remote and stage view.')) self.android_app_group_box.setTitle(translate('RemotePlugin.RemoteTab', 'Android App')) self.qr_description_label.setText( translate('RemotePlugin.RemoteTab', 'Scan the QR code or click