Skip to content

Commit 4729374

Browse files
authored
fix: make is_roundtrip_possible return a boolean (Open-MSS#2985)
1 parent 864448d commit 4729374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mslib/msui/tableview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def is_roundtrip_possible(self):
260260
condition = first_waypoint.lat != last_waypoint.lat or first_waypoint.lon != last_waypoint.lon or \
261261
first_waypoint.flightlevel != last_waypoint.flightlevel
262262

263-
return condition
263+
return bool(condition)
264264

265265
def update_roundtrip_enabled(self):
266266
self.btRoundtrip.setEnabled(self.is_roundtrip_possible())

0 commit comments

Comments
 (0)