Commit 81d608a4 authored by roangel's avatar roangel
Browse files

solved bug with del key pressing

parent 64bb6f30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.2, 2017-05-24T18:06:39. -->
<!-- Written by QtCreator 4.0.2, 2017-05-26T12:05:49. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -49,7 +49,7 @@ void myGraphicsScene::keyPressEvent(QKeyEvent * keyEvent)
if(crazyfly_zones[i]->isSelected())
{
qDebug("selectedRectangle: %d", i);
removeCrazyFlyZone(i);
removeCrazyFlyZone(crazyfly_zones[i]->getIndex());
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment