summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp')
-rw-r--r--Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp
index 141a8bf2d6..d502e8943e 100644
--- a/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp
+++ b/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp
@@ -295,19 +295,19 @@ void NetPlayBrowser::accept()
if (m_sessions[index].has_password)
{
- auto* dialog = new QInputDialog(this);
+ QInputDialog dialog(this);
- dialog->setWindowFlags(dialog->windowFlags() & ~Qt::WindowContextHelpButtonHint);
- dialog->setWindowTitle(tr("Enter password"));
- dialog->setLabelText(tr("This session requires a password:"));
- dialog->setWindowModality(Qt::WindowModal);
- dialog->setTextEchoMode(QLineEdit::Password);
+ dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
+ dialog.setWindowTitle(tr("Enter password"));
+ dialog.setLabelText(tr("This session requires a password:"));
+ dialog.setWindowModality(Qt::WindowModal);
+ dialog.setTextEchoMode(QLineEdit::Password);
- SetQWidgetWindowDecorations(dialog);
- if (dialog->exec() != QDialog::Accepted)
+ SetQWidgetWindowDecorations(&dialog);
+ if (dialog.exec() != QDialog::Accepted)
return;
- const std::string password = dialog->textValue().toStdString();
+ const std::string password = dialog.textValue().toStdString();
auto decrypted_id = session.DecryptID(password);