]> git.lyx.org Git - lyx.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>
Sun, 18 Mar 2018 17:30:48 +0000 (18:30 +0100)
Fixes: #11081
src/frontends/qt4/GuiExternal.cpp

index f721bd28b64cf183e88875cacd8110d078953bcb..87005fe9d2523af3a9261385f76e3b3fd934e138 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));