summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/ui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index d90fc762..fd20084d 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -108,6 +108,8 @@ MainWindow::MainWindow() :
"Configuration not saved.",
"Can't create configuration directory! Expect major malfunction.",
QMessageBox::Ok, QMessageBox::NoButton);
+
+ ui.btnStartTracker->setFocus();
}
bool MainWindow::get_new_config_name_from_dialog(QString& ret)
@@ -300,6 +302,8 @@ void MainWindow::startTracker() {
updateButtonState(true, is_inertial);
maybe_save();
+
+ ui.btnStopTracker->setFocus();
}
void MainWindow::stopTracker( ) {
@@ -329,6 +333,8 @@ void MainWindow::stopTracker( ) {
updateButtonState(false, false);
set_title();
+
+ ui.btnStartTracker->setFocus();
}
void MainWindow::display_pose(const double *mapped, const double *raw)