commit 385110653b952ac2f0db2505275cc178697c1130
parent eef49a328a9af499c616a5bd41355ba26ed31906
Author: ThomasV <thomasv@gitorious>
Date: Thu, 6 Aug 2015 16:56:20 +0200
gui tweaks
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -192,8 +192,9 @@ class ElectrumWindow(QMainWindow):
def fetch_alias(self):
self.alias_info = None
- alias = str(self.config.get('alias'))
+ alias = self.config.get('alias')
if alias:
+ alias = str(alias)
def f():
self.alias_info = self.contacts.resolve_openalias(alias)
self.emit(SIGNAL('alias_received'))
@@ -380,14 +381,15 @@ class ElectrumWindow(QMainWindow):
def loader(k):
return lambda: self.load_wallet_file(k)
self.recently_visited_menu.addAction(b, loader(k)).setShortcut(QKeySequence("Ctrl+%d"%i))
+ self.recently_visited_menu.setEnabled(len(recent))
def init_menubar(self):
menubar = QMenuBar()
file_menu = menubar.addMenu(_("&File"))
+ self.recently_visited_menu = file_menu.addMenu(_("&Recently open"))
file_menu.addAction(_("&Open"), self.open_wallet).setShortcut(QKeySequence.Open)
file_menu.addAction(_("&New/Restore"), self.new_wallet).setShortcut(QKeySequence.New)
- self.recently_visited_menu = file_menu.addMenu(_("&Recently open"))
file_menu.addSeparator()
file_menu.addAction(_("&Quit"), self.close)
self.update_recently_visited()