diff options
author | Arno <am@disconnect.de> | 2010-12-06 19:10:19 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-12-06 19:10:19 +0100 |
commit | a87e4d8c3c2102e9728dd5df303acca7ae08b343 (patch) | |
tree | 29b2b7d2c5f532da2ea18152e7cf34ad51b1016f /seriestreemodel.cpp | |
parent | cb4d80e6a642ef0cd3180aed2155d86144c83395 (diff) | |
download | SheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.tar.gz SheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.tar.bz2 SheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.zip |
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.
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r-- | seriestreemodel.cpp | 2 |
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){ |