Permalink
Browse files

Make S4C Message persist after restart

  • Loading branch information...
Tranz5 committed Sep 1, 2014
1 parent 6bc8e89 commit a89a50b4d0dbcab0a4b591aeba4ad6379108c8ec
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/qt/charitydialog.cpp
View
@@ -25,6 +25,17 @@ StakeForCharityDialog::~StakeForCharityDialog()
void StakeForCharityDialog::setModel(WalletModel *model)
{
this->model = model;
QString strAddress = model->getStakeForCharityAddress();
QString strPer = QString::number(model->getStakeForCharityPercent());
if (!strAddress.isEmpty() && strPer.toInt() > 0 )
{
ui->charityAddressEdit->setText(strAddress);
ui->charityPercentEdit->setText(strPer);
ui->message->setStyleSheet("QLabel { color: green; }");
ui->message->setText(tr("Thank you for giving to\n") + strAddress + tr("."));
}
}
void StakeForCharityDialog::setAddress(const QString &address)

0 comments on commit a89a50b

Please sign in to comment.