X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=eb52bc81b66020c1e68de411a831d3f6d869a18e;hb=71623b88;hp=d8dbc43616dd69804333ddc7abc59d50fa84bb0a;hpb=ffacdd8b469071e34c27f93e6f5b95f7a960a694;p=features.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index d8dbc43616..eb52bc81b6 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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,