electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d76a85acffb0d37fa4ecba89fa88fdf4c84bd111
parent e28d0e3288438f5eb181bdeeb28f5fc98fe2acfe
Author: Jimbo77 <onlineregular@gmail.com>
Date:   Tue, 21 Aug 2012 22:21:28 -0700

added quit functionality to menubar in lite gui

Diffstat:
Mlib/gui_lite.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -179,8 +179,8 @@ class MiniWindow(QDialog): electrum_menu.addSeparator() brain_seed = electrum_menu.addAction(_("&BrainWallet Info")) brain_seed.triggered.connect(self.actuator.show_seed_dialog) - - electrum_menu.addAction(_("&Quit")) + quit_option = electrum_menu.addAction(_("&Quit")) + quit_option.triggered.connect(self.actuator.quit) view_menu = menubar.addMenu(_("&View")) expert_gui = view_menu.addAction(_("&Pro Mode")) @@ -599,6 +599,9 @@ class MiniActuator: def show_seed_dialog(self): gui_qt.ElectrumWindow.show_seed_dialog(self.wallet) + def quit(self): + sys.exit(0) + class MiniDriver(QObject): INITIALIZING = 0