From b9e1d091cc799f7d2a2f551e28102466b401b0dd Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Thu, 1 Jan 2015 18:29:11 +0100
Subject: [PATCH] Renamed "email" to "salt

---
 res/ui/account_cfg.ui                   | 10 +++++-----
 src/cutecoin/gui/process_cfg_account.py |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/res/ui/account_cfg.ui b/res/ui/account_cfg.ui
index 015a34e0..5cbe3498 100644
--- a/res/ui/account_cfg.ui
+++ b/res/ui/account_cfg.ui
@@ -20,7 +20,7 @@
    <item>
     <widget class="QStackedWidget" name="stacked_pages">
      <property name="currentIndex">
-      <number>0</number>
+      <number>1</number>
      </property>
      <widget class="QWidget" name="page_init">
       <layout class="QVBoxLayout" name="verticalLayout_4">
@@ -48,7 +48,7 @@
             <item>
              <widget class="QLabel" name="label">
               <property name="text">
-               <string>Account name</string>
+               <string>Account name (uid)</string>
               </property>
              </widget>
             </item>
@@ -132,9 +132,9 @@
             <layout class="QHBoxLayout" name="horizontalLayout_5"/>
            </item>
            <item>
-            <widget class="QLineEdit" name="edit_email">
+            <widget class="QLineEdit" name="edit_salt">
              <property name="placeholderText">
-              <string>Your email</string>
+              <string>Your salt</string>
              </property>
             </widget>
            </item>
@@ -363,7 +363,7 @@
    </hints>
   </connection>
   <connection>
-   <sender>edit_email</sender>
+   <sender>edit_salt</sender>
    <signal>textChanged(QString)</signal>
    <receiver>AccountConfigurationDialog</receiver>
    <slot>action_edit_account_key()</slot>
diff --git a/src/cutecoin/gui/process_cfg_account.py b/src/cutecoin/gui/process_cfg_account.py
index ad23a63f..7792c6b8 100644
--- a/src/cutecoin/gui/process_cfg_account.py
+++ b/src/cutecoin/gui/process_cfg_account.py
@@ -65,7 +65,7 @@ class StepPageKey(Step):
         if len(self.config_dialog.edit_password.text()) < 2:
             return False
 
-        if len(self.config_dialog.edit_email.text()) < 2:
+        if len(self.config_dialog.edit_salt.text()) < 2:
             return False
 
         if len(self.config_dialog.edit_password.text()) < 6:
@@ -80,7 +80,7 @@ class StepPageKey(Step):
         return True
 
     def process_next(self):
-        salt = self.config_dialog.edit_email.text()
+        salt = self.config_dialog.edit_salt.text()
         password = self.config_dialog.edit_password.text()
         self.config_dialog.account.salt = salt
         self.config_dialog.account.pubkey = SigningKey(salt, password).pubkey
@@ -180,7 +180,7 @@ class ProcessConfigureAccount(QDialog, Ui_AccountConfigurationDialog):
             self.button_next.setEnabled(False)
 
     def action_show_pubkey(self):
-        salt = self.edit_email.text()
+        salt = self.edit_salt.text()
         password = self.edit_password.text()
         pubkey = SigningKey(salt, password).pubkey
         QMessageBox.information(self, "Public key",
-- 
GitLab