diff options
| author | aldelaro5 <aldelaro5@gmail.com> | 2018-05-05 22:07:56 -0400 |
|---|---|---|
| committer | aldelaro5 <aldelaro5@gmail.com> | 2018-05-12 19:04:37 -0400 |
| commit | 53803c1fcac5c08ea0d2747d258b6406240d426f (patch) | |
| tree | 33c315b29bb350396dbb9d8cfe8a3f975bf31fda /Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | |
| parent | 238c801711f9daa4613e988fa2147bd9e852ba91 (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
