Skip to content

Commit

Permalink
Fixed bug caused by using a variable before it was declared
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarns275 committed Jun 12, 2018
1 parent 669ea56 commit 36ab3f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/widgets/main_window_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ def __init__(self, parent):
self.edit_widget = EditWidget(self)
self.edit_container.addWidget(self.edit_widget)

self.graphing_widget = GraphingWidget(self)
self.graphing_container.setWidget(self.graphing_widget)

self.populate_table_lists()
self.populate_molecule_list()
self.populate_molecule_list()

self.graphing_widget = GraphingWidget(self)
self.graphing_container.setWidget(self.graphing_widget)

# Initially display a molecule in the molecule widget
self.__on_molecules_current_index_changed(0)
self.molecules_current_molecule.currentIndexChanged.connect(self.__on_molecules_current_index_changed)
Expand Down

0 comments on commit 36ab3f3

Please sign in to comment.