mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
double-clicking a group selects only that group
This commit is contained in:
parent
4dd1071b44
commit
9d5936f2b2
1 changed files with 4 additions and 2 deletions
|
@ -59,10 +59,12 @@ class Groups(QDialog):
|
|||
def onDoubleClick(self, item, col):
|
||||
if not item:
|
||||
return
|
||||
if col == COLNAME:
|
||||
self.onRename()
|
||||
if col == COLOPTS:
|
||||
self.onEdit()
|
||||
else:
|
||||
self.onSelectNone()
|
||||
item.setCheckState(COLCHECK, Qt.Checked)
|
||||
self.accept()
|
||||
|
||||
def addButtons(self):
|
||||
box = self.form.buttonBox
|
||||
|
|
Loading…
Reference in a new issue