set(CMAKE_VERBOSE_MAKEFILE ON)
endif()
-set(MONERO_HEAD "ed8859318349a5f01e9fd90e898603d4142b0951")
+set(MONERO_HEAD "eba8ce661ce289df99f507225dbb1aaf58125e85")
set(BUILD_GUI_DEPS ON)
option(ARCH "Target architecture" "x86-64")
set(BUILD_64 ON)
connect(ui->coins->header(), &QHeaderView::customContextMenuRequested, this, &CoinsWidget::showHeaderMenu);
// copy menu
- m_copyMenu->setIcon(icons()->icon("copy.png"));
- m_copyMenu->addAction("Public key", this, [this]{copy(copyField::PubKey);});
+ m_copyMenu->addAction("Public Key", this, [this]{copy(copyField::PubKey);});
m_copyMenu->addAction("Key Image", this, [this]{copy(copyField::KeyImage);});
m_copyMenu->addAction("Transaction ID", this, [this]{copy(copyField::TxID);});
m_copyMenu->addAction("Address", this, [this]{copy(copyField::Address);});
m_freezeAllSelectedAction = new QAction("Freeze selected", this);
m_thawAllSelectedAction = new QAction("Thaw selected", this);
- m_viewOutputAction = new QAction(icons()->icon("info2.svg"), "Details", this);
+ m_viewOutputAction = new QAction("Details", this);
m_sweepOutputAction = new QAction("Sweep output", this);
m_sweepOutputsAction = new QAction("Sweep selected outputs", this);
return coins;
}
-void Coins::setDescription(int index, quint32 accountIndex, const QString &description)
+void Coins::setDescription(const QString &publicKey, quint32 accountIndex, const QString &description)
{
- m_pimpl->setDescription(index, description.toStdString());
+ m_pimpl->setDescription(publicKey.toStdString(), description.toStdString());
this->refresh(accountIndex);
emit descriptionChanged();
}
Q_INVOKABLE void freeze(QString &publicKey) const;
Q_INVOKABLE void thaw(QString &publicKey) const;
Q_INVOKABLE QVector<CoinsInfo*> coins_from_txid(const QString &txid);
- Q_INVOKABLE void setDescription(int index, quint32 accountIndex, const QString &description);
+ Q_INVOKABLE void setDescription(const QString &publicKey, quint32 accountIndex, const QString &description);
quint64 count() const;
if (index.isValid() && role == Qt::EditRole) {
const int row = index.row();
+ QString pubkey;
+ bool found = m_coins->coin(index.row(), [this, &pubkey](const CoinsInfo &cInfo) {
+ pubkey = cInfo.pubKey();
+ });
+ if (!found) {
+ return false;
+ }
+
switch (index.column()) {
case Label:
- m_coins->setDescription(row, m_currentSubaddressAccount, value.toString());
+ m_coins->setDescription(pubkey, m_currentSubaddressAccount, value.toString());
emit descriptionChanged();
break;
default: