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() {