From 126e0c3dac5a6b223d609a7bfa29295f19992987 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 --- src/frontends/qt4/GuiExternal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index f721bd28b6..87005fe9d2 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));