]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
[lyx.git] / src / lyx_cb.C
index 56a059d7fffb2465a92cce0188f04fa0b7180f75..e3578314111db3cc6f221767fdd4d4196ab0cddb 100644 (file)
@@ -104,8 +104,7 @@ bool WriteAs(BufferView * bv, Buffer * buffer, string const & filename)
 
        if (filename.empty()) {
 
-               FileDialog fileDlg(bv->owner(),
-                                  _("Choose a filename to save document as"),
+               FileDialog fileDlg(_("Choose a filename to save document as"),
                        LFUN_WRITEAS,
                        make_pair(string(_("Documents|#o#O")),
                                  string(lyxrc.document_path)),
@@ -420,7 +419,7 @@ string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagrap
        string fname = f;
 
        if (fname.empty()) {
-               FileDialog fileDlg(bv->owner(), _("Select file to insert"),
+               FileDialog fileDlg(_("Select file to insert"),
                        (asParagraph) ? LFUN_FILE_INSERT_ASCII_PARA : LFUN_FILE_INSERT_ASCII);
 
                FileDialog::Result result = fileDlg.open(bv->owner()->buffer()->filePath());
@@ -473,7 +472,6 @@ string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagrap
 void MenuInsertLabel(BufferView * bv, string const & arg)
 {
        string label = arg;
-       bv->owner()->prohibitInput();
        if (label.empty()) {
                Paragraph * par = bv->getLyXText()->cursor.par();
                LyXLayout_ptr layout = par->layout();
@@ -518,7 +516,6 @@ void MenuInsertLabel(BufferView * bv, string const & arg)
                InsetLabel * inset = new InsetLabel(p);
                bv->insertInset(inset);
        }
-       bv->owner()->allowInput();
 }