From 53160fc539944dd75cc010a123dea4e0fc84249e Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Thu, 9 May 2013 21:43:44 +0200 Subject: [PATCH] added doc --- openlp/core/ui/mainwindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 95b065baf..debefe084 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -548,13 +548,13 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): def restore_current_media_manager_item(self): """ - + Called on start up to restore the last active media plugin. """ log.info(u'Load data from Settings') if Settings().value(u'advanced/save current plugin'): - saved_plugin = Settings().value(u'advanced/current media plugin') - if saved_plugin != -1: - self.media_tool_box.setCurrentIndex(saved_plugin) + saved_plugin_id = Settings().value(u'advanced/current media plugin') + if saved_plugin_id != -1: + self.media_tool_box.setCurrentIndex(saved_plugin_id) def on_search_shortcut_triggered(self): """