Open ExternalInset dialog on first tab for new insets

Fixes: #11081
This commit is contained in:
Juergen Spitzmueller 2018-03-18 18:30:48 +01:00
parent a5c859f863
commit 126e0c3dac

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