]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.h
next try at fixing 214; dist bugfix from Kayvan
[features.git] / src / insets / inset.h
index 5093c3eeea3ffd7cb1fd92c061a9e791998a005a..b17950499c377e366f01fe6a7632cb996314e263 100644 (file)
@@ -160,11 +160,10 @@ public:
        virtual void insetButtonPress(BufferView *, int, int, int) {}
        /// This is called when the user releases the button inside an inset
        // the bool return is used to see if we opened a dialog so that we can
-       // check this from an outer inset and open the dialog of the outer inset
-       // if that one has one!
-       ///
+       // check this from an outer inset and open the dialog of the
+       // outer inset if that one has one!
        virtual bool insetButtonRelease(BufferView *, int, int, int)
-               { return false; }
+               { return editable() == IS_EDITABLE; }
        /// This is called when the user moves the mouse inside an inset
        virtual void insetMotionNotify(BufferView *, int , int , int) {}
        ///