diff --git a/src/ui/WaypointList.cc b/src/ui/WaypointList.cc index eb59d361b38e138bbb7d083d67ef5ad7c52dd1b3..842a9ba8db35d9a8c7d3e5daebeb9bc95518205a 100644 --- a/src/ui/WaypointList.cc +++ b/src/ui/WaypointList.cc @@ -194,7 +194,7 @@ void WaypointList::loadWaypoints() msgBox.setInformativeText("You are using the offline mission editor. Please don't forget to save your mission plan before connecting the UAV, otherwise it will be lost."); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setDefaultButton(QMessageBox::Ok); - int ret = msgBox.exec(); + msgBox.exec(); showOfflineWarning = false; } QString fileName = QFileDialog::getOpenFileName(this, tr("Load File"), ".", tr("Waypoint File (*.txt)")); @@ -260,7 +260,7 @@ void WaypointList::addEditable() msgBox.setInformativeText("You are using the offline mission editor. Please don't forget to save your mission plan before connecting the UAV, otherwise it will be lost."); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setDefaultButton(QMessageBox::Ok); - int ret = msgBox.exec(); + msgBox.exec(); showOfflineWarning = false; } }