mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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):
|
def onDoubleClick(self, item, col):
|
||||||
if not item:
|
if not item:
|
||||||
return
|
return
|
||||||
if col == COLNAME:
|
|
||||||
self.onRename()
|
|
||||||
if col == COLOPTS:
|
if col == COLOPTS:
|
||||||
self.onEdit()
|
self.onEdit()
|
||||||
|
else:
|
||||||
|
self.onSelectNone()
|
||||||
|
item.setCheckState(COLCHECK, Qt.Checked)
|
||||||
|
self.accept()
|
||||||
|
|
||||||
def addButtons(self):
|
def addButtons(self):
|
||||||
box = self.form.buttonBox
|
box = self.form.buttonBox
|
||||||
|
|
Loading…
Reference in a new issue