]> git.cworth.org Git - apitrace/blobdiff - gui/mainwindow.cpp
Have selected call always match the current call.
[apitrace] / gui / mainwindow.cpp
index 0c69506947d7bfbd6afa3713046bf04ac4a99371..f1678a879a07c7d5f1ca9ba7bbd93f3d98d1e0bc 100644 (file)
@@ -760,7 +760,7 @@ void MainWindow::initConnections()
     connect(m_ui.actionOptions, SIGNAL(triggered()),
             this, SLOT(showSettings()));
 
-    connect(m_ui.callView, SIGNAL(activated(const QModelIndex &)),
+    connect(m_ui.callView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
             this, SLOT(callItemSelected(const QModelIndex &)));
     connect(m_ui.callView, SIGNAL(customContextMenuRequested(QPoint)),
             this, SLOT(customContextMenuRequested(QPoint)));