commit 743d2721db9dce9c35c8a93b80a8e87e198a47a1
parent 464a89ddf530d3c748812b4122198d537fa06ba7
Author: ThomasV <thomasv@gitorious>
Date: Fri, 7 Aug 2015 19:28:05 +0200
fix: recently_open
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -375,7 +375,9 @@ class ElectrumWindow(QMainWindow):
def update_recently_visited(self, filename=None):
recent = self.config.get('recently_open', [])
- if filename and filename not in recent:
+ if filename:
+ if filename in recent:
+ recent.remove(filename)
recent.insert(0, filename)
recent = recent[:5]
self.config.set_key('recently_open', recent)