]> git.lyx.org Git - features.git/commitdiff
Fix up e5fc7327.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 4 Oct 2018 21:56:14 +0000 (17:56 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 4 Oct 2018 21:56:14 +0000 (17:56 -0400)
lib/ui/stdcontext.inc
src/insets/InsetCollapsible.h
src/insets/InsetERT.cpp
src/insets/InsetERT.h

index a6a0504216942d833159d9d077b3c177122c2092..e358ce910aa2e932273280d75982f9b9d478efe0 100644 (file)
@@ -336,6 +336,9 @@ Menuset
        Menu "context-edit"
                spellingsuggestions
                Separator
+               OptItem "Edit Externally..." "inset-edit"
+               OptItem "End Editing Externally..." "inset-end-edit"
+               Separator
                Item "Cut" "cut"
                Item "Copy" "copy"
                Item "Paste" "paste"
@@ -651,9 +654,6 @@ Menuset
        Menu "context-ert"
                # repeat 1 is added as a work-around to not indicate this action as toggable
                Item "Wrap by Preview|y" "command-sequence repeat 1;inset-toggle;char-forward;char-backward;char-forward-select;preview-insert;char-backward;char-backward;inset-toggle"
-               Separator 
-               OptItem "Edit Externally...|x" "inset-edit" 
-               OptItem "End Editing Externally...|x" "inset-end-edit"
        End
 
 #
index c0fbe3b6afcd3e7aa5ca06b60614e6c35b9a6ea2..dac8440a5cbee6a59071ddd2333747ef7dee0712 100644 (file)
@@ -168,13 +168,13 @@ protected:
        Inset * editXY(Cursor & cur, int x, int y);
        ///
        mutable CollapseStatus status_;
+        ///
+        unique_ptr<support::TempFile> tempfile_;
 private:
        ///
        Dimension dimensionCollapsed(BufferView const & bv) const;
        ///
        docstring labelstring_;
-       ///
-       unique_ptr<support::TempFile> tempfile_;
 
        // These variables depend of the view in which the inset is displayed
        struct View
index f18234344acdfd97861a87663959412486f0e2a6..e3863ea09df1e244be261d2f92f1e1dd4dafa7b6 100644 (file)
@@ -134,12 +134,6 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
        FuncStatus & status) const
 {
        switch (cmd.action()) {
-       case LFUN_INSET_EDIT:
-               status.setEnabled(tempfile_ == 0);
-               return true;
-       case LFUN_INSET_END_EDIT:
-               status.setEnabled(tempfile_ != 0);
-               return true;
        case LFUN_INSET_INSERT:
                status.setEnabled(false);
                return true;
index 3438a08903db948b478f12149a9bbdc63fbced3c..30938e0ee0a06e06ef933085eeca75d4aafb1ca2 100644 (file)
@@ -71,8 +71,6 @@ private:
        bool allowSpellCheck() const { return false; }
        ///
        bool insetAllowed(InsetCode code) const { return code == QUOTE_CODE; }
-       ///
-       unique_ptr<support::TempFile> tempfile_;
 };