Skip to content

Commit

Permalink
Qt: use setExclusive for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
molkoback authored and ahmubashshir committed Oct 30, 2020
1 parent 7327953 commit fbaae6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trackma/ui/qt/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def start(self, account):
menu_list.addAction(action_scan_library)
menu_list.addAction(action_rescan_library)
self.menu_mediatype = menubar.addMenu('&Mediatype')
self.mediatype_actiongroup = QActionGroup(self, exclusionPolicy=QActionGroup.ExclusionPolicy["Exclusive"])
self.mediatype_actiongroup = QActionGroup(self)
self.mediatype_actiongroup.setExclusive(True)
self.mediatype_actiongroup.triggered.connect(self.s_mediatype)
menu_options = menubar.addMenu('&Options')
menu_options.addAction(self.action_reload)
Expand Down Expand Up @@ -309,7 +310,7 @@ def start(self, account):
'my_end': 9,
'tag': 10}

self.menu_columns_group = QActionGroup(self, exclusionPolicy=QActionGroup.ExclusionPolicy["None"])
self.menu_columns_group = QActionGroup(self)
self.menu_columns_group.triggered.connect(self.s_toggle_column)

for i, column_name in enumerate(self.view.model().sourceModel().columns):
Expand Down

0 comments on commit fbaae6f

Please sign in to comment.