tMake backup use real wallet from config - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 914bfffc53cfe019decad6b565134b48fdb92166
DIR parent ae9aaceaab3982ce1b59bbd84654eb45fbc1647f
HTML Author: Maran <maran.hidskes@gmail.com>
Date: Sat, 1 Jun 2013 10:34:27 +0200
Make backup use real wallet from config
Diffstat:
M gui/gui_classic.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py
t@@ -324,7 +324,7 @@ class ElectrumWindow(QMainWindow):
folderName = QFileDialog.getExistingDirectory(QWidget(), _('Select folder to save a copy of your wallet to'), os.path.expanduser('~/'))
if folderName:
# TODO: Can we get the current wallet file instead of bruteforcing the default one?
- sourceFile = util.user_dir() + '/electrum.dat'
+ sourceFile = self.wallet.config.path
shutil.copy2(sourceFile, str(folderName))
QMessageBox.information(None,"Wallet backup created", _("A copy of your wallet file was created in")+" '%s'" % str(folderName))
except (IOError, os.error), reason: