From a87e4d8c3c2102e9728dd5df303acca7ae08b343 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 6 Dec 2010 19:10:19 +0100 Subject: Edit values in archive This commit introduces QInputDialogs for all values editable in the archive. Inline editing in the view doesn't seem the right choice regarding usability. Fixed a long standing bug in nextDvdNo(). That was off by one. Return one more than max(value). Also got rid of DvdNoDialog, replaced by a QInputDialog. --- seriestreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seriestreemodel.cpp') 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){ -- cgit v1.2.3-70-g09d2