diff --git a/ankiqt/ui/addcards.py b/ankiqt/ui/addcards.py
index a2d56f6c5..694fca1ce 100644
--- a/ankiqt/ui/addcards.py
+++ b/ankiqt/ui/addcards.py
@@ -88,6 +88,14 @@ class AddCards(QDialog):
c = unicode(p.color(QPalette.Window).name())
self.dialog.status.setStyleSheet(
"* { background: %s; color: #000000; }" % c)
+ self.connect(self.dialog.status, SIGNAL("anchorClicked(QUrl)"),
+ self.onLink)
+
+ def onLink(self, url):
+ browser = ui.dialogs.get("CardList", self.parent)
+ browser.dialog.filterEdit.setText("fid:" + url.toString())
+ browser.updateSearch()
+ browser.onFact()
def modelChanged(self, model):
oldFact = self.editor.fact
@@ -129,8 +137,11 @@ class AddCards(QDialog):
The input you have provided would make an empty
question or answer on all cards."""), parent=self)
return
- self.dialog.status.append(_("Added %(num)d card(s) for '%(str)s'.") % {
+ self.dialog.status.append(
+ _("Added %(num)d card(s) for "
+ "%(str)s.") % {
"num": len(fact.cards),
+ "id": fact.id,
# we're guaranteed that all fields will exist now
"str": stripHTML(fact[fact.fields[0].name]),
})
diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py
index 1141357ac..8c019575d 100644
--- a/ankiqt/ui/cardlist.py
+++ b/ankiqt/ui/cardlist.py
@@ -1057,6 +1057,7 @@ where id in %s""" % ids2str(sf))
def onFind(self):
self.dialog.filterEdit.setFocus()
+ self.dialog.filterEdit.selectAll()
def onFact(self):
self.editor.focusFirst()
diff --git a/designer/addcards.ui b/designer/addcards.ui
index 8e4b7197d..433edf9aa 100644
--- a/designer/addcards.ui
+++ b/designer/addcards.ui
@@ -71,7 +71,7 @@
true
-
+
true
@@ -143,6 +143,12 @@ p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial';"></p></body></html>
+
+ Qt::TextBrowserInteraction
+
+
+ false
+