From fdb3e5182794a9f9f4a681016050fbc70ceddbab Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Sun, 24 Mar 2013 21:36:51 +0100 Subject: [PATCH] show why we couldn't update the record --- src/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b29892d1..2fdf5f1d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -701,7 +701,8 @@ void MainWindow::helpAbout() void MainWindow::updateRecordText(int row, int col, const QByteArray& newtext) { if (!db.updateRecord(row, col, newtext)){ - QMessageBox::information( this, QApplication::applicationName(), tr("Data could not be updated")); + QMessageBox::information( this, QApplication::applicationName(), + tr("Data could not be updated:\n") + db.lastErrorMessage); } rowList tab = db.browseRecs;