From bcd1814746ca8bfd66012d75fe1b5977a5fc2790 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 18 Mar 2018 18:30:48 +0100 Subject: [PATCH] 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(+) diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index f994aafaef..ba1c171ebf 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 a8e29318c3..f79f8604fb 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