Skip to content

Commit

Permalink
cast last route index to int before sending over
Browse files Browse the repository at this point in the history
  • Loading branch information
Numerlor committed Aug 10, 2019
1 parent 9ec3c02 commit dc985f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,13 +653,15 @@ def last_submit_act(self):
self.status.showMessage("No last route found")
self.last_submit.setEnabled(True)
else:
if last_route[0] == len(last_route[1]):
index = int(last_route[0])
route = last_route[1]
if index == route:
self.data_signal.emit(self.journals[self.last_comb.currentIndex()],
last_route[1], 1)
route, 1)
self.close()
else:
self.data_signal.emit(self.journals[self.last_comb.currentIndex()],
last_route[1], last_route[0])
route, index)
self.close()

def show_nearest(self):
Expand Down

0 comments on commit dc985f7

Please sign in to comment.