Permalink
Browse files

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.
  • Loading branch information...
aldelaro5 committed May 6, 2018
1 parent 238c801 commit 53803c1fcac5c08ea0d2747d258b6406240d426f
Showing with 2 additions and 0 deletions.
  1. +2 −0 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);

0 comments on commit 53803c1

Please sign in to comment.