diff --git a/src/templateselector.cpp b/src/templateselector.cpp index 81a4941fdf..1a63eb2a71 100644 --- a/src/templateselector.cpp +++ b/src/templateselector.cpp @@ -281,7 +281,7 @@ void TemplateSelector::onRequestCompleted() QString name=dd["name"].toString(); if(name.endsWith(".json")){ auto *item=new QTreeWidgetItem(); - item->setText(0,name.left(name.length()-5)); + item->setText(0,name.replace("template_","").replace(".json","")); item->setIcon(0,QIcon::fromTheme("file")); item->setData(0,DownloadRole,dd["download_url"].toString()); item->setData(0,UrlRole, url);