diff --git a/src/qt/documentlist.cpp b/src/qt/documentlist.cpp index a4b3fb607b58d..763f96e0b5838 100644 --- a/src/qt/documentlist.cpp +++ b/src/qt/documentlist.cpp @@ -305,7 +305,8 @@ QString Document::writeToBlockchain() QJsonObject jobj = jarval.toObject(); tmpamount = jobj.value("amount").toDouble(); if(jobj.value("spendable").toBool() - && jobj.value("confirmations").toInt() >= TransactionRecord::RecommendedNumConfirmations + //the following would prevent a revision with recently received InstandSend + //&& jobj.value("confirmations").toInt() >= TransactionRecord::RecommendedNumConfirmations && tmpamount <= 55 // max input is just a safety value to avoid loss of change && tmpamount >= minDocRevFee && tmpamount < mininput) { @@ -618,8 +619,10 @@ void DocumentList::handleNewFiles(const QStringList newFiles) { QString lastAddedFile = addFiles(newFiles); - LoadFiles(); - selectDocument(lastAddedFile); + if (!lastAddedFile.isEmpty()) { + LoadFiles(); + selectDocument(lastAddedFile); + } } void DocumentList::onlistViewDocumentsChanged(const QModelIndex ¤t, const QModelIndex &previous)