From b6ae98fa0aaa53ac84866fd2b04768c1f11882d3 Mon Sep 17 00:00:00 2001 From: tarman3 Date: Sun, 30 Nov 2025 20:08:12 +0200 Subject: [PATCH] CAM: PathCommands - Remove pop message about loop error --- src/Mod/CAM/PathCommands.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Mod/CAM/PathCommands.py b/src/Mod/CAM/PathCommands.py index e24efbdb40..5ef99eb0a6 100644 --- a/src/Mod/CAM/PathCommands.py +++ b/src/Mod/CAM/PathCommands.py @@ -39,9 +39,8 @@ from PySide.QtCore import QT_TRANSLATE_NOOP if FreeCAD.GuiUp: import FreeCADGui from PySide import QtCore - from PySide import QtGui -# translate = FreeCAD.Qt.translate +translate = FreeCAD.Qt.translate __title__ = "FreeCAD Path Commands" __author__ = "sliptonic" @@ -143,13 +142,7 @@ class _CommandSelectLoop: FreeCADGui.Selection.addSelection(obj, f"Edge{objEdges.index(eo) + 1}") return - # Final fallback - if FreeCAD.GuiUp: - QtGui.QMessageBox.information( - None, - QT_TRANSLATE_NOOP("CAM_SelectLoop", "Feature Completion"), - QT_TRANSLATE_NOOP("CAM_SelectLoop", "Closed loop detection failed."), - ) + Path.Log.warning(translate("CAM_SelectLoop", "Closed loop detection failed.")) def formsPartOfALoop(self, obj, sub, names): try: