mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 11:30:19 +01:00
* Bugfix for case, when only_thumbs=True, remove images! Bug discovered
in suspiciously big katalog file.
This commit is contained in:
@@ -338,6 +338,7 @@ class MainModel(ModelMT):
|
||||
sql = """UPDATE images SET filename=?,
|
||||
thumbnail=? WHERE id=?"""
|
||||
if only_thumbs:
|
||||
os.unlink(imp)
|
||||
img = None
|
||||
else:
|
||||
img = imp.split(self.internal_dirname)[1][1:]
|
||||
|
||||
Reference in New Issue
Block a user