]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.h
Generalise the deletion protection mechanism from math to text (#9540)
[features.git] / src / insets / InsetText.h
index d8dbc43616dd69804333ddc7abc59d50fa84bb0a..eb52bc81b66020c1e68de411a831d3f6d869a18e 100644 (file)
@@ -219,6 +219,10 @@ public:
        std::string contextMenuName() const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
+
+       ///
+       bool confirmDeletion() const { return !text().empty(); }
+
 protected:
        ///
        void iterateForToc(DocIterator const & cdit, bool output_active,