self._smsEntry.setFocus(QtCore.Qt.OtherFocusReason)
def _populate_number_selector(self, selector, cid, numbers):
- while 0 < selector.count():
- selector.removeItem(0)
+ selector.clear()
if len(numbers) == 1:
numbers, defaultIndex = _get_contact_numbers(self._session, cid, numbers[0])
if currentItem == "":
# Not loaded yet
currentItem = "None"
- while 0 < self._listSelection.count():
- self._listSelection.removeItem(0)
+ self._listSelection.clear()
bookNames = [book["name"] for book in self._addressBooks]
try:
newIndex = bookNames.index(currentItem)