Skip to content

Commit

Permalink
fix error on editing bearing and distance
Browse files Browse the repository at this point in the history
  • Loading branch information
myarjunar committed May 17, 2018
1 parent d08db47 commit 7fe53cb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions PyQt4Dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ def is_beacon_reference_exist(self, beacon_name):
return False
if beacon_to == beacon_name:
return False
if beacon_to == self.reference_beacon:
if beacon_to in self.auto["FROMBEACON"]:
return True

def is_end_linked(self, index):
Expand Down Expand Up @@ -2181,13 +2181,12 @@ def execute_option(self, button):
line_edit.setStyleSheet(self.colours["UNIQUE"])
valid = False
break
if bool(
int(self.database.query(
if bool(int(self.database.query(
self.query % ('beacon', "%s"),
(str(line_edit.text()),))[0][0])):
line_edit.setStyleSheet(self.colours["UNIQUE"])
valid = False
break
(str(line_edit.text()),))[0][0])):
line_edit.setStyleSheet(self.colours["UNIQUE"])
valid = False
break
if not valid:
QMessageBox.information(
self,
Expand Down

0 comments on commit 7fe53cb

Please sign in to comment.