From 1eca937d9cbf96bc05dfc019687f9bde54d5c2c2 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 2 May 2017 10:30:44 +0000 Subject: [PATCH] Fixed a problem when cycling through a nationality's cards and the "add card" tab is open. --- main_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_window.py b/main_window.py index 4f1213a..032037e 100644 --- a/main_window.py +++ b/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()