Only use base filename, not full path

This commit is contained in:
baldurk committed 2017-01-25 12:44:57 +00:00
1 parent 3b7eaaa4fb
commit b428dfd139
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ ShaderViewer::ShaderViewer(CaptureContext *ctx, ShaderReflection *shader, Shader
QWidget *sel = m_DisassemblyView;
for(auto &f : shader->DebugInfo.files)
{
QString name = ToQStr(f.first);
QString name = QFileInfo(ToQStr(f.first)).fileName();
QString text = ToQStr(f.second);
ScintillaEdit *scintilla = MakeEditor("scintilla" + name, text, true);