1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* Bugfix for case, when only_thumbs=True, remove images! Bug discovered

in suspiciously big katalog file.
This commit is contained in:
2008-07-03 11:55:14 +00:00
parent 9bf8eb506f
commit c1f4c0534c
2 changed files with 2 additions and 1 deletions

2
README
View File

@@ -1,4 +1,4 @@
pyGTKtalog 1.0 RC2 pyGTKtalog 1.0 RC3
================== ==================
pyGTKtalog is Linux/FreeBSD program for indexing CD/DVD or directories on pyGTKtalog is Linux/FreeBSD program for indexing CD/DVD or directories on

View File

@@ -338,6 +338,7 @@ class MainModel(ModelMT):
sql = """UPDATE images SET filename=?, sql = """UPDATE images SET filename=?,
thumbnail=? WHERE id=?""" thumbnail=? WHERE id=?"""
if only_thumbs: if only_thumbs:
os.unlink(imp)
img = None img = None
else: else:
img = imp.split(self.internal_dirname)[1][1:] img = imp.split(self.internal_dirname)[1][1:]