Fixed regression in adding to address book

This commit is contained in:
Grant T. Olson 2013-08-29 11:16:59 -04:00
parent 8a6d1d9cd5
commit 2165157c6e
1 changed files with 1 additions and 1 deletions

View File

@ -1844,7 +1844,7 @@ class MyForm(QtGui.QMainWindow):
"MainWindow", "The address you entered was invalid. Ignoring it."))
def addEntryToAddressBook(self,address,label):
sqlQuery('''select * from addressbook where address=?''', address)
queryreturn = sqlQuery('''select * from addressbook where address=?''', address)
if queryreturn == []:
self.ui.tableWidgetAddressBook.setSortingEnabled(False)
self.ui.tableWidgetAddressBook.insertRow(0)