Commit f465c560 authored by Luci Stanescu's avatar Luci Stanescu

Select a group that is added to the contact list

parent d5c8eb9d
......@@ -1099,9 +1099,12 @@ class ContactListView(QListView):
def _AH_AddGroup(self):
group = ContactGroup("")
self.model().addGroup(group)
model = self.model()
selection_model = self.selectionModel()
model.addGroup(group)
self.scrollToBottom()
group.widget.edit()
selection_model.select(model.index(model.rowCount()-1), selection_model.ClearAndSelect)
def _AH_AddContact(self):
model = self.model()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment