소스 검색

Bug fix in PilotsWidget

Upon deleting a Pilot Entry from the datbase, the stacked widget would not get updated and leave the just deleted entrie's data dangling in the UI.
Felix Turo 3 년 전
부모
커밋
de0201464e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/gui/widgets/pilotswidget.cpp

+ 1 - 0
src/gui/widgets/pilotswidget.cpp

@@ -180,6 +180,7 @@ void PilotsWidget::on_deletePilotButton_clicked()
         }
     }
     refreshView();
+    ui->stackedWidget->setCurrentIndex(0);
 }
 
 /*!