From 3cc994682c83b4d05fffce133bffeca23e8e2eca Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Fri, 18 Sep 2009 15:57:52 +0000 Subject: [PATCH] fix reconnection attempt when we never established one --- ftpbrowser/src/FTPBrowser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ftpbrowser/src/FTPBrowser.py b/ftpbrowser/src/FTPBrowser.py index 3a2d702..d342ca8 100644 --- a/ftpbrowser/src/FTPBrowser.py +++ b/ftpbrowser/src/FTPBrowser.py @@ -217,6 +217,7 @@ class FTPBrowser(Screen, Protocol, InfoBarNotifications, HelpableScreen): def reinitialize(self): # NOTE: this will clear the remote file list if we are not currently connected. this behavior is intended. + # XXX: but do we also want to do this when we just returned from a notification? self["remote"].refresh() self["local"].refresh() @@ -498,6 +499,8 @@ class FTPBrowser(Screen, Protocol, InfoBarNotifications, HelpableScreen): def connectionFailed(self, *args): print "[FTPBrowser] connection failed", args + + self.URI = "" self.session.open( MessageBox, _("Could not connect to ftp server!"), -- 2.7.4