profile_select: Remove unnecessary GetStatus() member function

This behavior is already provided by the built-in exec() function. We
just need to check the return value of it.
This commit is contained in:
Lioncash
2019-05-29 00:34:42 -04:00
parent 139301c5a1
commit 802dd3cc95
3 changed files with 8 additions and 18 deletions

View File

@ -122,20 +122,14 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(QWidget* parent)
QtProfileSelectionDialog::~QtProfileSelectionDialog() = default;
void QtProfileSelectionDialog::accept() {
ok = true;
QDialog::accept();
}
void QtProfileSelectionDialog::reject() {
ok = false;
user_index = 0;
QDialog::reject();
}
bool QtProfileSelectionDialog::GetStatus() const {
return ok;
}
int QtProfileSelectionDialog::GetIndex() const {
return user_index;
}