commit f55faedeb068e5f197e56b808943f57067fb6950
parent e9f1d4f078fb444fb0603f54aff3ddee774f5fbf
Author: Maran <maran.hidskes@gmail.com>
Date: Sat, 1 Jun 2013 10:51:26 +0200
Open wallet should use current wallets folder as default dir
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gui/gui_classic.py b/gui/gui_classic.py
@@ -312,7 +312,9 @@ class ElectrumWindow(QMainWindow):
def select_wallet_file(self):
- file_name = self.getOpenFileName(self, "Select your wallet file", os.path.expanduser('~/'), "*.dat")
+ wallet_folder = self.wallet.config.path
+ re.sub("(\/\w*.dat)$", "", wallet_folder)
+ file_name = QFileDialog.getOpenFileName(self, "Select your wallet file", wallet_folder, "*.dat")
if not file_name:
return
else: