From bc62c06e3cd00e0ce98e999d6f2f6112b14405e6 Mon Sep 17 00:00:00 2001 From: ospalh Date: Wed, 2 May 2012 19:20:29 +0200 Subject: [PATCH 1/2] 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) From eafac363411d268af5f3e9eed046982ba56e41a6 Mon Sep 17 00:00:00 2001 From: ospalh Date: Wed, 2 May 2012 19:23:39 +0200 Subject: [PATCH 2/2] Use the icon for the profiles selection dialog as well. --- designer/profiles.ui | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/designer/profiles.ui b/designer/profiles.ui index ad50960d8..8c907df33 100644 --- a/designer/profiles.ui +++ b/designer/profiles.ui @@ -13,6 +13,10 @@ Profiles + + + :/icons/anki.png:/icons/anki.png + @@ -109,6 +113,8 @@ delete_2 quit - + + +