]> git.lyx.org Git - features.git/commitdiff
Open ExternalInset dialog on first tab for new insets
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 18 Mar 2018 17:30:48 +0000 (18:30 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 29 Mar 2018 07:48:00 +0000 (09:48 +0200)
Fixes: #11081
(cherry picked from commit 126e0c3dac5a6b223d609a7bfa29295f19992987)

src/frontends/qt4/GuiExternal.cpp
status.23x

index f994aafaefc9b359c2e4b449602833d974786abb..ba1c171ebfca116f6a5377217b03b351f9614520 100644 (file)
@@ -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));
index a8e29318c33eec129b2993a7cd9d4939f313634b..f79f8604fb49c7e7b3c5d6fc5edb37319f54421c 100644 (file)
@@ -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