From bc62c06e3cd00e0ce98e999d6f2f6112b14405e6 Mon Sep 17 00:00:00 2001 From: ospalh Date: Wed, 2 May 2012 19:20:29 +0200 Subject: [PATCH] Open profile on double click --- aqt/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/main.py b/aqt/main.py index f98ced2c5..69a13d2c5 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -95,6 +95,8 @@ class AnkiQt(QMainWindow): f = self.profileForm = aqt.forms.profiles.Ui_Dialog() f.setupUi(d) d.connect(f.login, SIGNAL("clicked()"), self.onOpenProfile) + d.connect(f.profiles, SIGNAL("itemDoubleClicked(QListWidgetItem*)"), + self.onOpenProfile) d.connect(f.quit, SIGNAL("clicked()"), lambda: sys.exit(0)) d.connect(f.add, SIGNAL("clicked()"), self.onAddProfile) d.connect(f.rename, SIGNAL("clicked()"), self.onRenameProfile)