use quuid as cid in headermemo
This commit is contained in:
@@ -154,8 +154,9 @@ Tx MainWindow::createTxFromChatPage() {
|
||||
|
||||
amt = CAmount::fromDecimalString("0");
|
||||
totalAmt = totalAmt + amt;
|
||||
QString cid = QString::number( time(NULL) % std::rand() ); // low entropy for testing!
|
||||
// QString cid = QUuid::createUuid().toString(QUuid::WithoutBraces); // Needs to get a fix
|
||||
|
||||
// QString cid = QString::number( time(NULL) % std::rand() ); // low entropy for testing!
|
||||
QString cid = QUuid::createUuid().toString(QUuid::WithoutBraces); // Needs to get a fix
|
||||
QString hmemo= createHeaderMemo(cid,"Some ZADDR");
|
||||
|
||||
QString memo = ui->memoTxtChat->toPlainText().trimmed();
|
||||
|
||||
@@ -991,11 +991,11 @@ void MainWindow::setupchatTab() {
|
||||
|
||||
///////// Set selected Zaddr for Chat with Doubleklick
|
||||
|
||||
QObject::connect(ui->listContactWidget, &QTableView::doubleClicked, [=] () {
|
||||
QObject::connect(ui->listContactWidget, &QTableView::clicked, [=] () {
|
||||
|
||||
QModelIndex index = ui->listContactWidget->currentIndex();
|
||||
QString itemText = index.data(Qt::DisplayRole).toString();
|
||||
ui->ContactZaddr->setText(itemText);
|
||||
QString zaddr = index.data(Qt::DisplayRole).toString();
|
||||
ui->ContactZaddr->setText(zaddr);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user