Minor improvement in edit_mutualcorrs

When a new correspondence is created, is automatically selected. When a
correspondence is deleted, the first is automatically selected.
This commit is contained in:
Matteo Dellepiane 2016-11-10 10:02:09 +01:00
parent c744160fbe
commit f5c43e5cb8

View File

@ -301,6 +301,7 @@ void EditMutualCorrsPlugin::addNewPoint()
// update dialog
mutualcorrsDialog->updateTable();
mutualcorrsDialog->ui->tableWidget->selectRow(mutualcorrsDialog->ui->tableWidget->rowCount()-1);
glArea->update();
}
@ -324,6 +325,7 @@ void EditMutualCorrsPlugin::deleteCurrentPoint()
// update dialog
mutualcorrsDialog->updateTable();
mutualcorrsDialog->ui->tableWidget->selectRow(0);
glArea->update();
}