#include "editaddressdialog.h"
#include "optionsmodel.h"
#include "guiutil.h"
+#include "wallet.h"
#include <QScrollBar>
#include <QComboBox>
QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
QAction *editLabelAction = new QAction(tr("Edit label"), this);
QAction *showDetailsAction = new QAction(tr("Show transaction details"), this);
+ QAction *clearOrphansAction = new QAction(tr("Clear orphans"), this);
contextMenu = new QMenu();
contextMenu->addAction(copyAddressAction);
contextMenu->addAction(copyTxIDAction);
contextMenu->addAction(editLabelAction);
contextMenu->addAction(showDetailsAction);
+ contextMenu->addSeparator();
+ contextMenu->addAction(clearOrphansAction);
mapperThirdPartyTxUrls = new QSignalMapper(this);
connect(copyTxIDAction, SIGNAL(triggered()), this, SLOT(copyTxID()));
connect(editLabelAction, SIGNAL(triggered()), this, SLOT(editLabel()));
connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
+ connect(clearOrphansAction, SIGNAL(triggered()), this, SLOT(clearOrphans()));
}
void TransactionView::setModel(WalletModel *model)
}
}
+void TransactionView::clearOrphans()
+{
+ if(!model)
+ return;
+
+ model->clearOrphans();
+}
+
void TransactionView::openThirdPartyTxUrl(QString url)
{
if(!transactionView->selectionModel())