Skip to content

Commit

Permalink
Fix if else check for lab or theory
Browse files Browse the repository at this point in the history
Now one can create both lab and theory without restarting the app
  • Loading branch information
Abir-Tx committed Mar 18, 2021
1 parent 5701b28 commit d4bccae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void sfo::on_pushButton_clicked()
void sfo::on_next_2_clicked()
{
if (isLabSelected) ui->labsubnolabel->setText("How many Lab Subjects have you got");
else if (isTheorySelected) ui->labsubnolabel->setText("How many Theory Subjects have you got");
if (isTheorySelected) ui->labsubnolabel->setText("How many Theory Subjects have you got");
else ui->labsubnolabel->setText("How many Subjects have you got");

ui->stackedWidget->setCurrentIndex(3);
Expand Down Expand Up @@ -263,6 +263,9 @@ void sfo::on_next_4_clicked()

ui->back_5->setDisabled(true);
ui->back_5->hide();


ui->createLabs->setDisabled(false);
}

void sfo::on_back_5_clicked()
Expand Down Expand Up @@ -303,6 +306,7 @@ void sfo::on_actionFeedback_triggered()
QDesktopServices::openUrl(QUrl("mailto:[email protected]", QUrl::TolerantMode));
}

// Open the folder button
void sfo::on_pushButton_2_clicked()
{
ui->statusbar->showMessage("Openning the parent folder in Windows File Explorer", 2000);
Expand Down

0 comments on commit d4bccae

Please sign in to comment.