mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-14 12:13:59 +01:00
receive: improve wallet file corruption detection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user