mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix error message when failing to load a capture
This commit is contained in:
@@ -158,8 +158,12 @@ void CaptureContext::LoadLogfileThreaded(const QString &logFile, const QString &
|
||||
if(!m_Renderer.IsRunning())
|
||||
{
|
||||
QString errmsg = "Unknown error message";
|
||||
ReplayCreateStatus status = m_Renderer.GetCreateStatus();
|
||||
errmsg = status;
|
||||
|
||||
// TODO
|
||||
// errmsg = m_Renderer.GetCreateStatus();
|
||||
|
||||
progressThread.acquire();
|
||||
progressTickerThread.wait();
|
||||
|
||||
RDDialog::critical(NULL, "Error opening log",
|
||||
QString("%1\nFailed to open logfile for replay: %2.\n\n"
|
||||
@@ -167,9 +171,6 @@ void CaptureContext::LoadLogfileThreaded(const QString &logFile, const QString &
|
||||
.arg(logFile)
|
||||
.arg(errmsg));
|
||||
|
||||
progressThread.acquire();
|
||||
progressTickerThread.wait();
|
||||
|
||||
GUIInvoke::call([this]() {
|
||||
m_Progress->setValue(1000);
|
||||
m_MainWindow->setProgress(-1.0f);
|
||||
|
||||
Reference in New Issue
Block a user