Missed db reference in edit page

This commit is contained in:
Ken Roberts 2014-10-07 12:37:55 -07:00
parent 7545fb534f
commit c789d1c0ed
2 changed files with 7 additions and 1 deletions

View File

@ -34,3 +34,9 @@ __pycache__
*.dll *.dll
.directory .directory
*.kate-swp *.kate-swp
# Git files
.git
.gitignore
# Rejected diff's
*.rej
*.~\?~

View File

@ -492,7 +492,7 @@ class ConnectEditPage(ConnectBase):
self.wizard().projector.location = location self.wizard().projector.location = location
self.wizard().projector.notes = notes self.wizard().projector.notes = notes
self.wizard().projector.pin = pin self.wizard().projector.pin = pin
saved = self.db.update_projector(self.wizard().projector) saved = self.wizard().db.update_projector(self.wizard().projector)
if not saved: if not saved:
QtGui.QMessageBox.error(self, translate('OpenLP.ProjectorWizard', 'Database Error'), QtGui.QMessageBox.error(self, translate('OpenLP.ProjectorWizard', 'Database Error'),
translate('OpenLP.ProjectorWizard', 'There was an error saving projector ' translate('OpenLP.ProjectorWizard', 'There was an error saving projector '