mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
DbViewer: before resetting all changes, added a confirmation message box!
This commit is contained in:
@@ -4061,14 +4061,21 @@ void DatabaseViewer::refineAllLinks(const QList<Link> & links)
|
||||
}
|
||||
}
|
||||
|
||||
void DatabaseViewer::resetAllChanges()
|
||||
{
|
||||
linksAdded_.clear();
|
||||
linksRefined_.clear();
|
||||
linksRemoved_.clear();
|
||||
generatedLocalMaps_.clear();
|
||||
generatedLocalMapsInfo_.clear();
|
||||
modifiedLaserScans_.clear();
|
||||
void DatabaseViewer::resetAllChanges()
|
||||
{
|
||||
if(QMessageBox::question(this,
|
||||
tr("Reset all changes"),
|
||||
tr("You are about to reset all changes you've made so far, do you want to continue?"),
|
||||
QMessageBox::Yes | QMessageBox::No,
|
||||
QMessageBox::No) == QMessageBox::Yes)
|
||||
{
|
||||
linksAdded_.clear();
|
||||
linksRefined_.clear();
|
||||
linksRemoved_.clear();
|
||||
generatedLocalMaps_.clear();
|
||||
generatedLocalMapsInfo_.clear();
|
||||
modifiedLaserScans_.clear();
|
||||
updateLoopClosuresSlider();
|
||||
this->updateGraphView();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user