receive: improve wallet file corruption detection

This commit is contained in:
tobtoht
2024-03-08 17:35:57 +01:00
parent 4756f0dbe7
commit f97fa90521
11 changed files with 180 additions and 50 deletions
+6 -1
View File
@@ -4,6 +4,7 @@
#include "SubaddressView.h"
#include "utils/Utils.h"
#include "SubaddressModel.h"
SubaddressView::SubaddressView(QWidget *parent) : QTreeView(parent) {
@@ -15,7 +16,11 @@ void SubaddressView::keyPressEvent(QKeyEvent *event){
if(!selectedIndexes().isEmpty()){
if(event->matches(QKeySequence::Copy)){
QModelIndex index = this->currentIndex();
Utils::copyColumn(&index, index.column());
if (index.column() == SubaddressModel::ModelColumn::Address) {
emit copyAddress();
} else {
Utils::copyColumn(&index, index.column());
}
}
else
QTreeView::keyPressEvent(event);