From bb3b0564707f12241bf8e03ea631898602ff50ac Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Mon, 11 May 2015 16:08:57 +0200
Subject: [PATCH] Set preferences value

---
 res/i18n/ts/fr_FR.ts            | 2 +-
 src/cutecoin/gui/preferences.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts
index 55484788..c757d0cb 100644
--- a/res/i18n/ts/fr_FR.ts
+++ b/res/i18n/ts/fr_FR.ts
@@ -1135,7 +1135,7 @@ Le processus pour rejoindre la communauté devrait être refait à zéro.</trans
     <message>
         <location filename="../../../src/cutecoin/models/network.py" line="41"/>
         <source>Block</source>
-        <translation>Blck</translation>
+        <translation>Block</translation>
     </message>
     <message>
         <location filename="../../../src/cutecoin/models/network.py" line="42"/>
diff --git a/src/cutecoin/gui/preferences.py b/src/cutecoin/gui/preferences.py
index 88942d7e..51c92d02 100644
--- a/src/cutecoin/gui/preferences.py
+++ b/src/cutecoin/gui/preferences.py
@@ -31,8 +31,10 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog):
         self.combo_account.setCurrentText(self.app.preferences['account'])
         for ref in Account.referentials:
             self.combo_referential.addItem(ref)
+        self.combo_referential.setCurrentText(self.app.preferences['ref'])
         for lang in ('en_GB', 'fr_FR'):
             self.combo_language.addItem(lang)
+        self.combo_language.setCurrentText(self.app.preferences['lang'])
 
     def accept(self):
         pref = {'account': self.combo_account.currentText(),
-- 
GitLab