Open ExternalInset dialog on first tab for new insets

Fixes: #11081
(cherry picked from commit 126e0c3dac)
This commit is contained in:
Juergen Spitzmueller 2018-03-18 18:30:48 +01:00
parent d549330760
commit bcd1814746
2 changed files with 6 additions and 0 deletions

View 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));

View 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