diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp index 4a0a1f14ca..12dca6e945 100755 --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -385,8 +385,17 @@ void CoinControlDialog::viewItemChanged(QTreeWidgetItem* item, int column) coinControl->UnSelect(outpt); else if (item->isDisabled()) // locked (this happens if "check all" through parent node) item->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); - else + else { coinControl->Select(outpt); + CTxIn vin(outpt); + int rounds = GetInputDarksendRounds(vin); + if(coinControl->useDarkSend && rounds < nDarksendRounds) { + QMessageBox::warning(this, windowTitle(), + tr("Non-anonymized input selected. Darksend will be disabled.

If you still want to use Darksend, please deselect all non-nonymized inputs first and then check Darksend checkbox again."), + QMessageBox::Ok, QMessageBox::Ok); + coinControl->useDarkSend = false; + } + } // selection changed -> update labels if (ui->treeWidget->isEnabled()) // do not update on every click for (un)select all diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index b0a8f4a649..9bdba8e0b9 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -684,6 +684,8 @@ void SendCoinsDialog::coinControlUpdateLabels() CoinControlDialog::payAmounts.append(entry->getValue().amount); } + ui->checkUseDarksend->setChecked(CoinControlDialog::coinControl->useDarkSend); + if (CoinControlDialog::coinControl->HasSelected()) { // actual coin control calculation