mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 01:57:57 -05:00
yuzu/software_keyboard: Remove unnecessary GetStatus() member function
Like with the profile selection dialog, we can just use the result of QDialog's exec() function to determine whether or not a dialog was accepted.
This commit is contained in:
@ -259,9 +259,8 @@ void GMainWindow::SoftwareKeyboardGetText(
|
||||
dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
|
||||
Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
|
||||
dialog.setWindowModality(Qt::WindowModal);
|
||||
dialog.exec();
|
||||
|
||||
if (!dialog.GetStatus()) {
|
||||
if (dialog.exec() == QDialog::Rejected) {
|
||||
emit SoftwareKeyboardFinishedText(std::nullopt);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user