summaryrefslogtreecommitdiffstats
path: root/seriestreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r--seriestreemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/seriestreemodel.cpp b/seriestreemodel.cpp
index ccc6abe..bd82acc 100644
--- a/seriestreemodel.cpp
+++ b/seriestreemodel.cpp
@@ -256,7 +256,7 @@ int SeriesTreeModel::findNextDvdNo() const{
while(mNextDvdNoQuery->next()){
dvdno = mNextDvdNoQuery->value(0).toInt();
}
- return dvdno;
+ return ++dvdno;
}
bool SeriesTreeModel::deleteFromSeries(const QModelIndex &what){