diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-29 00:52:47 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-29 00:56:45 -0400 |
commit | cfc9d92b38bae6d9815ae06bbe5e2d800887f897 (patch) | |
tree | 0e29c639d312387b9ec6e32a22fa73d084e3b4f8 /src/yuzu/main.cpp | |
parent | 802dd3cc95aee9e7ba3a5005e291beb65612b52b (diff) |
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.
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index cb07b64b88..92de0097e2 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -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; } |