From 87924f2ddd0060281fbfa3d08cfb41428d68ca28 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sat, 21 Aug 2021 10:35:21 -0700 Subject: DolphinQt: Remove Windows dialog help buttons --- Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp') 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) { -- cgit v1.2.3