Only remover disassembly toolbar when debugging, not when viewing shader

This commit is contained in:
baldurk committed 2017-08-03 17:57:21 +01:00
1 parent e7d092cdaf
commit 86a9d70bb7
1 file changed
+2 -2
+2 -2
View File
@@ -290,8 +290,6 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
m_Trace = trace;
m_Stage = stage;
m_DisassemblyFrame->layout()->removeWidget(m_DisassemblyToolbar);
// no replacing allowed, stay in find mode
m_FindReplace->allowUserModeChange(false);
@@ -341,6 +339,8 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
{
m_DisassemblyView->usePopUp(SC_POPUP_NEVER);
m_DisassemblyFrame->layout()->removeWidget(m_DisassemblyToolbar);
m_DisassemblyView->setContextMenuPolicy(Qt::CustomContextMenu);
QObject::connect(m_DisassemblyView, &ScintillaEdit::customContextMenuRequested, this,
&ShaderViewer::disassembly_contextMenu);