Retrieving JSON data from the proxy model and send it via core to the server.

This commit is contained in:
2026-01-29 15:11:59 +01:00
parent 518bebcbb7
commit 67d9a3914d

View File

@ -304,8 +304,9 @@ void MainWindow::fetchItems() {
void MainWindow::postItems() {
showStatusMessage(tr("Invoked 'Server|Post items'"));
const int currentRow = ui->tableView->currentIndex().row();
emit m_core->sendItemToServer(currentRow);
const QModelIndex currentIndex = ui->tableView->currentIndex();
const QByteArray jsonData = m_proxyModel->jsonDataForServer(currentIndex);
emit m_core->sendItemToServer(jsonData);
}
void MainWindow::createActions() {