mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Try and cover a case that was making the waypointitem crash
This commit is contained in:
parent
0a842ac639
commit
8aab4755e4
@ -97,8 +97,14 @@ namespace mapcontrol
|
||||
{
|
||||
if(event->button()==Qt::LeftButton)
|
||||
{
|
||||
delete text;
|
||||
delete textBG;
|
||||
if(text) {
|
||||
delete text;
|
||||
text = NULL;
|
||||
}
|
||||
if(textBG) {
|
||||
delete textBG;
|
||||
textBG = NULL;
|
||||
}
|
||||
coord=map->FromLocalToLatLng(this->pos().x(),this->pos().y());
|
||||
isDragging=false;
|
||||
RefreshToolTip();
|
||||
|
Loading…
Reference in New Issue
Block a user