summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2019-03-04 17:40:27 -0500
committerGitHub <noreply@github.com>2019-03-04 17:40:27 -0500
commit147f7ca3213aef22dfe45bfab86e2d221aa248bf (patch)
treeb32f19c11585ea4e1b205eb2e959e695636e5a19 /Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
parenta59010fa29ab10ca031bea87fc5df165e70e2dff (diff)
parent70da86f1c3c933ce28d122f95f34ff6c24f89d80 (diff)
Merge pull request #7849 from spycrab/qt_modal_again
Qt: Make every messagebox modal
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
index 6cf68babab..6271be807a 100644
--- a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
+++ b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
@@ -11,11 +11,11 @@
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
-#include <QMessageBox>
#include <QRadioButton>
#include <QVBoxLayout>
#include "DolphinQt/Debugger/BreakpointWidget.h"
+#include "DolphinQt/QtUtils/ModalMessageBox.h"
NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
: QDialog(parent), m_parent(parent)
@@ -138,7 +138,8 @@ void NewBreakpointDialog::OnAddressTypeChanged()
void NewBreakpointDialog::accept()
{
auto invalid_input = [this](QString field) {
- QMessageBox::critical(this, tr("Error"), tr("Invalid input for the field \"%1\"").arg(field));
+ ModalMessageBox::critical(this, tr("Error"),
+ tr("Invalid input for the field \"%1\"").arg(field));
};
bool instruction = m_instruction_bp->isChecked();