Commit eef9f47c authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Scoringdialog and explainview: When closing them, update state of their action button

parent a94c5b04
......@@ -555,6 +555,10 @@ class ScoreTable(QWidget):
if height:
self.leftLayout.addSpacing(height)
def closeEvent(self, unusedEvent): # pylint: disable=no-self-use
"""update action button state"""
Internal.mainWindow.actionScoreTable.setChecked(False)
class ExplainView(QListView):
......@@ -606,6 +610,10 @@ class ExplainView(QListView):
# QStringListModel does not optimize identical lists away, so we do
self.model.setStringList(lines)
def closeEvent(self, unusedEvent): # pylint: disable=no-self-use
"""update action button state"""
Internal.mainWindow.actionExplain.setChecked(False)
class PenaltyBox(QSpinBox):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment