commit bcd1814746ca8bfd66012d75fe1b5977a5fc2790
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Mar 18 18:30:48 2018 +0100

    Open ExternalInset dialog on first tab for new insets
    
    Fixes: #11081
    (cherry picked from commit 126e0c3dac5a6b223d609a7bfa29295f19992987)
---
 src/frontends/qt4/GuiExternal.cpp |    3 +++
 status.23x                        |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiExternal.cpp 
b/src/frontends/qt4/GuiExternal.cpp
index f994aaf..ba1c171 100644
--- a/src/frontends/qt4/GuiExternal.cpp
+++ b/src/frontends/qt4/GuiExternal.cpp
@@ -493,6 +493,9 @@ static void getCrop(external::ClipData & data,
 
 void GuiExternal::updateContents()
 {
+       if (params_.filename.empty())
+               tab->setCurrentIndex(0);
+
        string const name =
                params_.filename.outputFileName(fromqstr(bufferFilePath()));
        fileED->setText(toqstr(name));
diff --git a/status.23x b/status.23x
index a8e2931..f79f860 100644
--- a/status.23x
+++ b/status.23x
@@ -127,6 +127,9 @@ What's new
 - Correctly set default bibliography style in the Document Settings
   dialog (bug 11088).
 
+- Assure that the External Inset dialog is opened at first tab for
+  new insets (bug 11081).
+
 
 * INTERNALS
 

Reply via email to