mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Alert dialog "Go" button is not disabled when selecting an alert without coordinates
This commit is contained in:
parent
963cbccdd9
commit
7ef3cb8347
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,10 @@ void AlertDialogImpl::UpdateAlertInfo()
|
||||||
centroid_ =
|
centroid_ =
|
||||||
common::GetCentroid(alertSegment->codedLocation_->coordinates());
|
common::GetCentroid(alertSegment->codedLocation_->coordinates());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
centroid_ = common::Coordinate {};
|
||||||
|
}
|
||||||
|
|
||||||
goButton_->setEnabled(centroid_ != common::Coordinate {});
|
goButton_->setEnabled(centroid_ != common::Coordinate {});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue