From ffb4f3eb6f7c629ecfcae630aef08a7b07056251 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Tue, 30 Apr 2024 22:45:44 +0530 Subject: [PATCH] chore: update file --- snigdhaosassistant.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snigdhaosassistant.cpp b/snigdhaosassistant.cpp index 6c15767..a4311d6 100644 --- a/snigdhaosassistant.cpp +++ b/snigdhaosassistant.cpp @@ -342,7 +342,7 @@ void SnigdhaOSAssistant::relaunchSelf(){ updateState(param); } -void SnigdhaOSAssistant::on_selectWidget_buttonBox_clicked(){ +void SnigdhaOSAssistant::on_textWidget_buttonBox_clicked(){ switch (currentState) { case State::WELCOME: if (ui->textWidget_buttonBox->standardButton(button) == QDialogButtonBox::Ok) { @@ -385,3 +385,9 @@ void SnigdhaOSAssistant::on_selectWidget_buttonBox_clicked(){ } } +void SnigdhaOSAssistant::on_selectWidget_buttonBox_clicked(QAbstractButton* button){ + if (ui->selectWidget_buttonBox->standardButton(button) == QDialogButtonBox::Ok) { + updateState(State::APPLY); + } else + updateState(State::QUIT); +} \ No newline at end of file