Skip to content

Commit

Permalink
Fix event sssigned multiple times to the save button
Browse files Browse the repository at this point in the history
If multiple saves were opened in one session, the save button
would get the event several times instead of just once.
  • Loading branch information
rdrooij committed Apr 6, 2019
1 parent be0c26d commit 50dd928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sd3save_editor/gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self):
self.ui.setupUi(self)
self.initFileOpenEvents()
self.initChangeNameInput()
self.initSaveEvent()
self.saveIndex = None
self.guiData = {
"currentHp": SpinboxElement(
Expand Down Expand Up @@ -176,7 +177,6 @@ def openFileDialog(self):
self.ui.actionSave.setEnabled(True)
self.initData()
self.setTableData()
self.initSaveEvent()
self.initSaveEntryComboBox()
except Exception as ex:
QMessageBox.warning(self, "Can't open Seiken3 save", str(ex))

0 comments on commit 50dd928

Please sign in to comment.