diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index c32f3edecd..73cabd0c24 100644 --- a/src/frontends/qt4/GuiExternal.cpp +++ b/src/frontends/qt4/GuiExternal.cpp @@ -461,7 +461,7 @@ void GuiExternal::updateContents() params_.filename.outputFilename(fromqstr(bufferFilepath())); fileED->setText(toqstr(name)); - int index = -1; + int index = 0; external::TemplateManager::Templates::const_iterator i1, i2; i1 = external::TemplateManager::get().getTemplates().begin(); i2 = external::TemplateManager::get().getTemplates().end();