show why we couldn't update the record

This commit is contained in:
Peinthor Rene
2013-03-24 21:36:51 +01:00
parent 7eb385b28d
commit fdb3e51827

View File

@@ -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;