summaryrefslogtreecommitdiffstats
path: root/examples/sql/masterdetail/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/masterdetail/dialog.cpp')
-rw-r--r--examples/sql/masterdetail/dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/sql/masterdetail/dialog.cpp b/examples/sql/masterdetail/dialog.cpp
index 0b8ed8a75b6..e1d64090e9b 100644
--- a/examples/sql/masterdetail/dialog.cpp
+++ b/examples/sql/masterdetail/dialog.cpp
@@ -173,6 +173,7 @@ void Dialog::increaseAlbumCount(const QModelIndex &artistIndex)
int albumCount = albumCountIndex.data().toInt();
artistModel->setData(albumCountIndex, QVariant(albumCount + 1));
+ artistModel->submitAll();
}