From 67d9a3914da27d2af0ed6180642c41cb22b4c60e Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Thu, 29 Jan 2026 15:11:59 +0100 Subject: [PATCH] Retrieving JSON data from the proxy model and send it via core to the server. --- mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 219048c..6641ba2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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() {