Skip to content

Commit

Permalink
Merge pull request #66 from myarjunar/edit-parcel-error-patch
Browse files Browse the repository at this point in the history
Edit parcel error patch
  • Loading branch information
mazano authored May 17, 2018
2 parents 7554ee8 + 7fe53cb commit 99b3f1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def refresh_layers(self):
layer.name().lower():
target_group.removeLayer(layer)

for required_layer in reversed(self.required_layers):
for required_layer in self.required_layers:
self.uri.setDataSource(
required_layer.schema,
required_layer.table,
Expand Down

0 comments on commit 99b3f1d

Please sign in to comment.