Fixed a problem when cycling through a nationality's cards and the "add card" tab is open.

master
Pacman Ghost 7 years ago
parent 4a1a705bff
commit 1eca937d9c
  1. 4
      main_window.py

@ -100,8 +100,8 @@ class MainWindow( QMainWindow ) :
index = (index + 1) % self.tab_widget.count()
if index == start_index :
break
card = self.tab_widget.widget( index ).card
if card.nationality == nat :
widget = self.tab_widget.widget( index )
if type(widget) is AslCardWidget and widget.card.nationality == nat :
self.tab_widget.setCurrentIndex( index )
break
self.view_menu.clear()

Loading…
Cancel
Save