Fixed regression in adding to address book
This commit is contained in:
parent
8a6d1d9cd5
commit
2165157c6e
|
@ -1844,7 +1844,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
"MainWindow", "The address you entered was invalid. Ignoring it."))
|
"MainWindow", "The address you entered was invalid. Ignoring it."))
|
||||||
|
|
||||||
def addEntryToAddressBook(self,address,label):
|
def addEntryToAddressBook(self,address,label):
|
||||||
sqlQuery('''select * from addressbook where address=?''', address)
|
queryreturn = sqlQuery('''select * from addressbook where address=?''', address)
|
||||||
if queryreturn == []:
|
if queryreturn == []:
|
||||||
self.ui.tableWidgetAddressBook.setSortingEnabled(False)
|
self.ui.tableWidgetAddressBook.setSortingEnabled(False)
|
||||||
self.ui.tableWidgetAddressBook.insertRow(0)
|
self.ui.tableWidgetAddressBook.insertRow(0)
|
||||||
|
|
Reference in New Issue
Block a user