]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.h
Generalise the deletion protection mechanism from math to text (#9540)
[features.git] / src / mathed / InsetMathNest.h
index f1426350c3070145672610cd5913904612f1697a..f1cfdd8beb66fa4d2b6eee557928fd33bcbaa318 100644 (file)
@@ -131,6 +131,9 @@ public:
        ///
        InsetCode lyxCode() const { return MATH_NEST_CODE; }
 
+       ///
+       bool confirmDeletion() const { return nargs() > 0; }
+
 protected:
        ///
        InsetMathNest(InsetMathNest const & inset);