Default to last URL checked in GUI.

This commit is contained in:
Bastian Kleineidam 2011-07-25 21:31:33 +02:00
parent 752941e029
commit 7ebe67d7f6
2 changed files with 7 additions and 0 deletions

View file

@ -14,6 +14,11 @@ Fixes:
Closes: SF bug #3377193
- checking: Ignore attribute errors when printing the Qt version.
Changes:
- gui: Default to last URL checked in GUI (if no URL is given as
commandline parameter).
Closes: SF bug 3311271
Features:
- checking: New option --user-agent to set the User-Agent header
string sent to HTTP web servers. Note that this does not change

View file

@ -117,6 +117,8 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
self.urlinput.setModel(self.recent)
if url:
self.urlinput.setText(url)
elif documents:
self.urlinput.setText(documents[0])
def init_app (self):
"""Set window size and position, GUI options and reset status."""