diff --git a/py/LunaTranslator/gui/dialog_savedgame.py b/py/LunaTranslator/gui/dialog_savedgame.py index dc7fca16d8..c39897b8a8 100644 --- a/py/LunaTranslator/gui/dialog_savedgame.py +++ b/py/LunaTranslator/gui/dialog_savedgame.py @@ -773,7 +773,10 @@ def movefocus(self, dx): self.flow.verticalScrollBar().maximum() ) else: - self.flow.ensureWidgetVisible(self.flow.widget(idx2)) + try: + self.flow.ensureWidgetVisible(self.flow.widget(idx2)) + except: + pass try: self.flow.widget(idx2).click() except: @@ -787,7 +790,6 @@ def moverank(self, dx): game2 = self.idxsave[idx2] self.idxsave.insert(idx2, self.idxsave.pop(idx1)) self.flow.switchidx(idx1, idx2) - # self.flow.ensureWidgetVisible(self.flow.widget(idx2)) idx1 = self.reflist.index(game) idx2 = self.reflist.index(game2) self.reflist.insert(idx2, self.reflist.pop(idx1)) diff --git a/py/LunaTranslator/gui/dialog_savedgame_v3.py b/py/LunaTranslator/gui/dialog_savedgame_v3.py index d62ffb6371..6c22fda5ac 100644 --- a/py/LunaTranslator/gui/dialog_savedgame_v3.py +++ b/py/LunaTranslator/gui/dialog_savedgame_v3.py @@ -778,7 +778,10 @@ def movefocus(self, dx): self.stack.verticalScrollBar().maximum() ) else: - self.stack.ensureWidgetVisible(group0.w(idx2)) + try: + self.stack.ensureWidgetVisible(group0.w(idx2)) + except: + pass try: group0.w(idx2).click() except: @@ -1012,9 +1015,12 @@ def moverank(self, dx): ) self.stack.w(calculatetagidx(self.reftagid)).switchidx(idx1, idx2) - self.stack.ensureWidgetVisible( - self.stack.w(calculatetagidx(self.reftagid)).w(idx2) - ) + try: + self.stack.ensureWidgetVisible( + self.stack.w(calculatetagidx(self.reftagid)).w(idx2) + ) + except: + pass idx1 = getreflist(self.reftagid).index(uid) idx2 = getreflist(self.reftagid).index(uid2) getreflist(self.reftagid).insert(idx2, getreflist(self.reftagid).pop(idx1))