Bug 202432 - Counter jumps back when renaming/deleting image in sequence
Summary: Counter jumps back when renaming/deleting image in sequence
Status: RESOLVED FIXED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 20:56 UTC by Michael G. Hansen
Modified: 2012-11-27 20:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael G. Hansen 2009-08-03 20:56:42 UTC
Version:           0.3 (using KDE 4.2.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

When I scan with "Save without asking for a filename", the filename counter is automatically increased with every saved image. Since scanning takes time for each image, one is tempted to start renaming/deleting previously scanned images while waiting for the next one. However, if I am scanning what would be image-006 and delete image-003 in the meantime, the next image is saved to image-003 instead of image-006.

I would expect that during a scan session, the counter only goes up without looking for free numbers from the beginning. This leads to a messed up order of the images. 

Could you at least make it an option to only scan for free numbers at the beginning of a session? Also, it would be nice to specify a start value for the counter if I want to resume scanning and have already deleted/renamed pictures in between.
Comment 1 Kåre Särs 2009-08-03 21:15:16 UTC
Thanks,

I think you might have a point there :)
I'll add it to the TODO
Comment 2 Sybren Stüvel 2011-05-29 22:47:29 UTC
I would love this to be extended in such a way that the next number is used even across sessions.

For example, when the numbering scheme is Image-#### and I have Image-0010 as the highest-numbered image, the next filename would be Image-0011 irregardless of whether Image-0001 through Image-0009 already exist.
Comment 3 Kåre Särs 2012-11-27 20:45:44 UTC
Git commit 54a987060a58b69bf958ea8117ce98e983039015 by Kåre Särs.
Committed on 27/11/2012 at 21:36.
Pushed by sars into branch 'master'.

Save sequence number across sessions

M  +8    -3    src/skanlite.cpp

http://commits.kde.org/skanlite/54a987060a58b69bf958ea8117ce98e983039015