Skip to content

Commit

Permalink
Greatly reduced debug output on delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern committed May 23, 2024
1 parent 3c51a26 commit 96cb340
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/items/itembase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ ItemBase::~ItemBase() {

//m_simItem is a child of this object, it gets delated by the destructor
m_simItem = nullptr;
DebugDialog::debug(QString("deleted itembase %1").arg((qintptr)this, 0, 16));
// DebugDialog::debug(QString("deleted itembase %1").arg((qintptr)this, 0, 16));
}

void ItemBase::setTooltip() {
Expand Down
4 changes: 2 additions & 2 deletions src/sketch/sketchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ ItemBase * SketchWidget::findItem(long id) {

void SketchWidget::deleteItemForCommand(long id, bool deleteModelPart, bool doEmit, bool later) {
ItemBase * pitem = findItem(id);
DebugDialog::debug(QString("delete item (1) %1 %2 %3 %4").arg(id).arg(doEmit).arg(m_viewID).arg((long) pitem, 0, 16) );
// DebugDialog::debug(QString("delete item (1) %1 %2 %3 %4").arg(id).arg(doEmit).arg(m_viewID).arg((long) pitem, 0, 16) );
if (pitem) {
deleteItem(pitem, deleteModelPart, doEmit, later);
}
Expand All @@ -965,7 +965,7 @@ void SketchWidget::deleteItem(ItemBase * itemBase, bool deleteModelPart, bool do
// which is the old value of the boundingRect before the legs were deleted.

if (itemBase->hasRubberBandLeg()) {
DebugDialog::debug("kill rubberBand");
// DebugDialog::debug("kill rubberBand");
itemBase->killRubberBandLeg();
}

Expand Down

0 comments on commit 96cb340

Please sign in to comment.