@@ -21,7 +21,6 @@ BdapUpdateAccountDialog::BdapUpdateAccountDialog(QWidget *parent, BDAP::ObjectTy
21
21
ui(new Ui::BdapUpdateAccountDialog)
22
22
{
23
23
// By default, accountType is USER. so only change stuff if different
24
-
25
24
ui->setupUi (this );
26
25
inputAccountType = accountType;
27
26
@@ -50,7 +49,6 @@ BdapUpdateAccountDialog::BdapUpdateAccountDialog(QWidget *parent, BDAP::ObjectTy
50
49
51
50
ui->labelErrorMsg ->setVisible (false );
52
51
ui->pushButtonOK ->setVisible (false );
53
-
54
52
}
55
53
56
54
BdapUpdateAccountDialog::~BdapUpdateAccountDialog ()
@@ -70,17 +68,17 @@ void BdapUpdateAccountDialog::updateAccount()
70
68
71
69
accountID = ui->lineEditID ->text ().toStdString ();
72
70
commonName = ui->lineEditCommonName ->text ().toStdString ();
73
- registrationDays = ui->lineEditRegistrationDays ->text ().toStdString ();
71
+ registrationDays = ui->lineEditRegistrationMonths ->text ().toStdString ();
74
72
75
73
ui->lineEditID ->setReadOnly (true );
76
74
ui->lineEditCommonName ->setReadOnly (true );
77
- ui->lineEditRegistrationDays ->setReadOnly (true );
75
+ ui->lineEditRegistrationMonths ->setReadOnly (true );
78
76
79
77
QPalette *palette = new QPalette ();
80
78
palette->setColor (QPalette::Text,Qt::darkGray);
81
79
ui->lineEditID ->setPalette (*palette);
82
80
ui->lineEditCommonName ->setPalette (*palette);
83
- ui->lineEditRegistrationDays ->setPalette (*palette);
81
+ ui->lineEditRegistrationMonths ->setPalette (*palette);
84
82
85
83
86
84
ui->labelErrorMsg ->setVisible (true );
@@ -105,8 +103,7 @@ void BdapUpdateAccountDialog::updateAccount()
105
103
jreq.params = RPCConvertValues (" updategroup" , params);
106
104
jreq.strMethod = " updategroup" ;
107
105
108
- }; // end inputAccountType if
109
-
106
+ } // end inputAccountType if
110
107
111
108
try {
112
109
UniValue result = tableRPC.execute (jreq);
@@ -133,15 +130,11 @@ void BdapUpdateAccountDialog::updateAccount()
133
130
ui->labelErrorMsg ->setText (QObject::tr (outputmessage.c_str ()));
134
131
} // updateAccount
135
132
136
-
137
-
138
-
139
133
void BdapUpdateAccountDialog::goCancel ()
140
134
{
141
135
QDialog::reject (); // cancelled
142
136
} // goCancel
143
137
144
-
145
138
void BdapUpdateAccountDialog::goClose ()
146
139
{
147
140
QDialog::accept (); // accepted
@@ -163,18 +156,4 @@ std::string BdapUpdateAccountDialog::ignoreErrorCode(const std::string input)
163
156
return returnvalue;
164
157
165
158
166
- } // ignoreErrorCode
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
159
+ } // ignoreErrorCode
0 commit comments