Skip to content

Commit

Permalink
XSegEditor: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
iperov committed Mar 27, 2020
1 parent 6687213 commit d1a5639
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion XSegEditor/XSegEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,9 @@ def process_prev_image(self):
break
if len(self.image_paths) == 0:
break
if self.canvas_initialize(self.image_paths[0], only_has_polys):


if self.canvas_initialize(self.image_paths[0], len(self.image_paths_done) != 0 and only_has_polys):
break

self.update_cached_images()
Expand Down
4 changes: 2 additions & 2 deletions core/qtex/QXIconButton.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def action(self, is_pressed=None, op_device=None):
self.repeat_timer.setInterval(self.repeat_delay)

def on_keyPressEvent(self, ev):
key = ev.key()
key = ev.nativeVirtualKey()
if ev.isAutoRepeat():
return

Expand All @@ -75,7 +75,7 @@ def on_keyPressEvent(self, ev):
self.action(is_pressed=True)

def on_keyReleaseEvent(self, ev):
key = ev.key()
key = ev.nativeVirtualKey()
if ev.isAutoRepeat():
return
if self.seq is not None:
Expand Down

0 comments on commit d1a5639

Please sign in to comment.