diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 4a43a7935aa..be5c2f2b7c3 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -2565,17 +2565,17 @@ bool BreakpointManager::setData(const QModelIndex &idx, const QVariant &value, i // setCurrentIndex(index(row, 0)); FIXME return true; } -// if (kev->key() == Qt::Key_Space) { -// const QModelIndexList selectedIds = ev.selectedRows(); -// if (!selectedIds.isEmpty()) { -// const GlobalBreakpoints gbps = findBreakpointsByIndex(selectedIds); -// const bool isEnabled = gbps.isEmpty() || gbps.at(0)->isEnabled(); -// for (GlobalBreakpoint gbp : gbps) -// gbp->m_parameters.enabled = isEnabled; + if (kev->key() == Qt::Key_Space) { + const QModelIndexList selectedIds = ev.selectedRows(); + if (!selectedIds.isEmpty()) { + const GlobalBreakpoints gbps = findBreakpointsByIndex(selectedIds); + const bool isEnabled = gbps.isEmpty() || gbps.at(0)->isEnabled(); + for (GlobalBreakpoint gbp : gbps) + gbp->setEnabled(!isEnabled); // scheduleSynchronization(); -// return true; -// } -// } + return true; + } + } } if (ev.as(QEvent::MouseButtonDblClick)) { diff --git a/src/plugins/debugger/breakhandler.h b/src/plugins/debugger/breakhandler.h index 6df2080429c..dee8b3e69b6 100644 --- a/src/plugins/debugger/breakhandler.h +++ b/src/plugins/debugger/breakhandler.h @@ -98,7 +98,7 @@ private: void updateMarker(); void updateMarkerIcon(); void destroyMarker(); - void scheduleSynchronization(); +// void scheduleSynchronization(); QPointer usingEngine() const; bool isEngineRunning() const;