From 7ebe67d7f6b67164ee87c36789a9e420d59414e2 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 25 Jul 2011 21:31:33 +0200 Subject: [PATCH] Default to last URL checked in GUI. --- doc/changelog.txt | 5 +++++ linkcheck/gui/__init__.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/doc/changelog.txt b/doc/changelog.txt index 9e798875..9dbad74d 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -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 diff --git a/linkcheck/gui/__init__.py b/linkcheck/gui/__init__.py index b3f7a8f9..b8f9e451 100644 --- a/linkcheck/gui/__init__.py +++ b/linkcheck/gui/__init__.py @@ -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."""