]> git.cworth.org Git - apitrace/blobdiff - gui/mainwindow.cpp
Implement grouping of calls.
[apitrace] / gui / mainwindow.cpp
index 327833039f47d5119bde157a9b7ce4e97dbf9e56..3accf6e9489f0ecca39b8dc777f13292c3258c93 100644 (file)
@@ -1265,7 +1265,8 @@ void MainWindow::saveSelectedSurface()
         imageIndex = tr("_call_%1")
                      .arg(selectedCall()->index());
     } else if (selectedFrame()) {
-        ApiTraceCall *firstCall = selectedFrame()->call(0);
+        ApiTraceCall *firstCall =
+            static_cast<ApiTraceCall *>(selectedFrame()->eventAtRow(0));
         if (firstCall) {
             imageIndex = tr("_frame_%1")
                          .arg(firstCall->index());