From dacf0a5cd100942f7cf417cef0b3c30d2dc118ca Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 19 Oct 2017 11:26:00 -0700 Subject: [PATCH] Instead of hiding FinalDepth make it read-only and set tooltip appropriately. --- src/Mod/Path/PathScripts/PathOpGui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathOpGui.py b/src/Mod/Path/PathScripts/PathOpGui.py index be699cebc9..69e9a6d08d 100644 --- a/src/Mod/Path/PathScripts/PathOpGui.py +++ b/src/Mod/Path/PathScripts/PathOpGui.py @@ -585,8 +585,8 @@ class TaskPanelDepthsPage(TaskPanelPage): self.startDepth = PathGui.QuantitySpinBox(self.form.startDepth, obj, 'StartDepth') if PathOp.FeatureNoFinalDepth & self.features: - self.form.finalDepth.hide() - self.form.finalDepthLabel.hide() + self.form.finalDepth.setEnabled(False) + self.form.finalDepth.setToolTip(translate('PathOp', 'FinalDepth cannot be modified for this operation.\nIf it is necessary to set the FinalDepth manually please select a different operation.')) self.form.finalDepthSet.hide() else: self.finalDepth = PathGui.QuantitySpinBox(self.form.finalDepth, obj, 'FinalDepth')