Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
de0201464e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
 }
 
 /*!