瀏覽代碼

Reset UI after deletion

After deletion of Pilot or Aircraft Entry, reset UI by clearing searchLineEdit
Felix Turo 3 年之前
父節點
當前提交
b635c9ee97
共有 3 個文件被更改,包括 2 次插入1 次删除
  1. 0 1
      src/classes/acompletiondata.cpp
  2. 1 0
      src/gui/widgets/aircraftwidget.cpp
  3. 1 0
      src/gui/widgets/pilotswidget.cpp

+ 0 - 1
src/classes/acompletiondata.cpp

@@ -28,7 +28,6 @@ void ACompletionData::update()
 
         current_state = aDB->getUserDataState();
     }
-
 }
 
 void ACompletionData::updateTails()

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

@@ -199,6 +199,7 @@ void AircraftWidget::on_deleteAircraftButton_clicked()
     }
     refreshView();
     ui->stackedWidget->setCurrentIndex(0);
+    ui->aircraftSearchLineEdit->setText(QString());
 }
 
 /*!

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

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