From c6a7549d12a158be45af078007dfe4ee6b003d25 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Fri, 30 Apr 2010 02:59:15 +0100 Subject: [PATCH] Make settings_section/last directory entries consistent --- openlp/core/ui/servicemanager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 2a4da68a4..56ac3e8b4 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -1,3 +1,4 @@ +import os.path # -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 @@ -501,7 +502,8 @@ class ServiceManager(QtGui.QWidget): filename = unicode(filename) self.isNew = False SettingsManager.set_last_dir( - self.parent.service_settings_section, filename) + self.parent.service_settings_section, + os.path.split(filename)[0]) service = [] servicefile = filename + u'.osd' zip = None @@ -578,7 +580,8 @@ class ServiceManager(QtGui.QWidget): name = filename.split(os.path.sep) if filename: SettingsManager.set_last_dir( - self.parent.service_settings_section, filename) + self.parent.service_settings_section, + os.path.split(filename)[0]) zip = None f = None try: