Fix error message when failing to load a capture

This commit is contained in:
baldurk
2016-11-09 18:17:57 +01:00
parent 2175404d4e
commit 9d264e1998
+6 -5
View File
@@ -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);