]> git.cworth.org Git - apitrace/blobdiff - gui/mainwindow.cpp
Auto detect the API from the trace.
[apitrace] / gui / mainwindow.cpp
index bf56115ddc06d44b4023c4598fb8657ca2b809a2..eeab447137c5c58eec6581b505dafe2e7fe235e4 100644 (file)
@@ -265,6 +265,7 @@ void MainWindow::finishedLoadingTrace()
     if (!m_trace) {
         return;
     }
+    m_api = m_trace->api();
     QFileInfo info(m_trace->fileName());
     statusBar()->showMessage(
         tr("Loaded %1").arg(info.fileName()), 3000);