mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 09:49:51 +00:00
[#86 state:fixed] Fixed a crash in GetOutlineViewValues.
This commit is contained in:
parent
b372974437
commit
cd9b7f2f11
@ -257,7 +257,7 @@ class DupeGuru(app.DupeGuru):
|
|||||||
if tag in (0,2): #Normal results / Power Marker
|
if tag in (0,2): #Normal results / Power Marker
|
||||||
if tag == 0:
|
if tag == 0:
|
||||||
g, d = self.GetObjects(node_path)
|
g, d = self.GetObjects(node_path)
|
||||||
if d is None:
|
if (d is None) and (g is not None):
|
||||||
d = g.ref
|
d = g.ref
|
||||||
else:
|
else:
|
||||||
d = self.results.dupes[node_path[0]]
|
d = self.results.dupes[node_path[0]]
|
||||||
|
@ -303,7 +303,10 @@ class TCDupeGuru(TestCase):
|
|||||||
# Out of range requests don't crash and return an empty value
|
# Out of range requests don't crash and return an empty value
|
||||||
app = self.app
|
app = self.app
|
||||||
# [0, 2] is out of range
|
# [0, 2] is out of range
|
||||||
|
# Directories
|
||||||
eq_(app.GetOutlineViewValues(1, [0, 2]), []) # no crash
|
eq_(app.GetOutlineViewValues(1, [0, 2]), []) # no crash
|
||||||
|
# Normal results
|
||||||
|
app.GetOutlineViewValues(0, [42, 0]) # no crash
|
||||||
|
|
||||||
|
|
||||||
class TCDupeGuru_renameSelected(TestCase):
|
class TCDupeGuru_renameSelected(TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user