Merge pull request #841 from sehraf/pr-minor-fix

minor fix
This commit is contained in:
csoler 2017-05-28 22:02:14 +02:00 committed by GitHub
commit 4c07050776

View File

@ -1495,10 +1495,8 @@ void ServerPage::updateStatusBob()
QString addr = QString::fromStdString(mBobSettings.addr);
if (ui.leBobB32Addr->text() != addr) {
ui.leBobB32Addr->setText(addr);
ui.hiddenpage_serviceAddress->setText(addr);
ui.pteBobServerKey->setPlainText(QString::fromStdString(mBobSettings.keys));
ui.hiddenpage_serviceAddress->setText(addr);
ui.pteBobServerKey->setPlainText(QString::fromStdString(mBobSettings.keys));
if (!mBobSettings.keys.empty()) {
// we have an addr -> show fields
@ -1516,6 +1514,8 @@ void ServerPage::updateStatusBob()
ui.leBobB32Addr->hide();
ui.pbBobGenAddr->hide();
}
saveAddresses();
}
bobStates bs;