This commit is contained in:
Raoul Snyman 2010-06-20 13:43:16 +02:00
parent 28bb5e519d
commit 054ec36e4a

View File

@ -662,8 +662,7 @@ class ServiceManager(QtGui.QWidget):
name = filename.split(os.path.sep) name = filename.split(os.path.sep)
if filename: if filename:
SettingsManager.set_last_dir( SettingsManager.set_last_dir(
self.parent.serviceSettingsSection, self.parent.serviceSettingsSection, name[0])
os.path.split(filename)[0])
zip = None zip = None
file_to = None file_to = None
try: try:
@ -697,7 +696,7 @@ class ServiceManager(QtGui.QWidget):
self.onNewService() self.onNewService()
for item in items: for item in items:
serviceitem = ServiceItem() serviceitem = ServiceItem()
serviceitem.RenderManager = self.parent.RenderManager serviceitem.render_manager = self.parent.RenderManager
serviceitem.set_from_service(item, self.servicePath) serviceitem.set_from_service(item, self.servicePath)
self.validateItem(serviceitem) self.validateItem(serviceitem)
self.addServiceItem(serviceitem) self.addServiceItem(serviceitem)