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