From 53803c1fcac5c08ea0d2747d258b6406240d426f Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Sat, 5 May 2018 22:07:56 -0400 Subject: [PATCH] Qt/debugger: fix minor issues in the breakpointWidget The items were editable while you cannot edit the breakpoints at the moment and the last breakpoint deleted would not cause the row count to change to 0. --- Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp index 7f746d289c..cc5bd73b72 100644 --- a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp @@ -77,6 +77,7 @@ void BreakpointWidget::CreateWidgets() m_table->setColumnCount(5); m_table->setSelectionMode(QAbstractItemView::SingleSelection); m_table->setSelectionBehavior(QAbstractItemView::SelectRows); + m_table->setEditTriggers(QAbstractItemView::NoEditTriggers); m_table->verticalHeader()->hide(); auto* layout = new QVBoxLayout; @@ -122,6 +123,7 @@ void BreakpointWidget::Update() {tr("Active"), tr("Type"), tr("Function"), tr("Address"), tr("Flags")}); int i = 0; + m_table->setRowCount(i); auto create_item = [this](const QString string = QStringLiteral("")) { QTableWidgetItem* item = new QTableWidgetItem(string);