mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
PostProcessingDialog: don't close dialog if validate failed
This commit is contained in:
@@ -105,10 +105,6 @@ void PostProcessingDialog::closeDialog ( QAbstractButton * button )
|
|||||||
{
|
{
|
||||||
this->accept();
|
this->accept();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
this->reject();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -118,7 +114,7 @@ void PostProcessingDialog::closeDialog ( QAbstractButton * button )
|
|||||||
|
|
||||||
bool PostProcessingDialog::validateForm()
|
bool PostProcessingDialog::validateForm()
|
||||||
{
|
{
|
||||||
if(!this->intraSession() && !this->interSession())
|
if(_ui->detectMoreLoopClosures->isChecked() && !this->intraSession() && !this->interSession())
|
||||||
{
|
{
|
||||||
QMessageBox::warning(this, tr("Configuration error"), tr("Intra-session and inter-session parameters cannot be both disabled at the same time. Please select one (or both)."));
|
QMessageBox::warning(this, tr("Configuration error"), tr("Intra-session and inter-session parameters cannot be both disabled at the same time. Please select one (or both)."));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -354,38 +354,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<include location="../GuiLib.qrc"/>
|
<include location="../GuiLib.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections/>
|
||||||
<connection>
|
|
||||||
<sender>buttonBox</sender>
|
|
||||||
<signal>accepted()</signal>
|
|
||||||
<receiver>PostProcessingDialog</receiver>
|
|
||||||
<slot>accept()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>248</x>
|
|
||||||
<y>254</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>157</x>
|
|
||||||
<y>274</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>buttonBox</sender>
|
|
||||||
<signal>rejected()</signal>
|
|
||||||
<receiver>PostProcessingDialog</receiver>
|
|
||||||
<slot>reject()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>316</x>
|
|
||||||
<y>260</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>286</x>
|
|
||||||
<y>274</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
</connections>
|
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user