mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Reset event browser before it's added
* When we add it, if a log is already open that's when we get the callback to OnLogFileOpened to initialised. If we close afterwards, we'll be in an inconsistent state.
This commit is contained in:
@@ -60,6 +60,8 @@ EventBrowser::EventBrowser(ICaptureContext &ctx, QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
OnLogfileClosed();
|
||||
|
||||
m_Ctx.AddLogViewer(this);
|
||||
|
||||
clearBookmarks();
|
||||
@@ -131,8 +133,6 @@ EventBrowser::EventBrowser(ICaptureContext &ctx, QWidget *parent)
|
||||
ui->events->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
QObject::connect(ui->events, &RDTreeWidget::customContextMenuRequested, this,
|
||||
&EventBrowser::events_contextMenu);
|
||||
|
||||
OnLogfileClosed();
|
||||
}
|
||||
|
||||
EventBrowser::~EventBrowser()
|
||||
|
||||
Reference in New Issue
Block a user