summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
index 9d1ae245a2..870c3c3665 100644
--- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
@@ -250,9 +250,11 @@ void WatchWidget::OnClear()
void WatchWidget::OnNewWatch()
{
- QString text = QInputDialog::getText(this, tr("Input"), tr("Enter address to watch:"));
+ const QString text =
+ QInputDialog::getText(this, tr("Input"), tr("Enter address to watch:"), QLineEdit::Normal,
+ QString{}, nullptr, Qt::WindowCloseButtonHint);
bool good;
- uint address = text.toUInt(&good, 16);
+ const uint address = text.toUInt(&good, 16);
if (!good)
{