]> git.cworth.org Git - apitrace/commitdiff
Only jump to errors when the error item is activated.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 10:49:19 +0000 (10:49 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 10:49:19 +0000 (10:49 +0000)
Because currentItemChanged signal is too frequent/random, happening even
at times where errors window is invisible, when switching between tabs of
the current state pane, causing the current call to go out of focus.

gui/mainwindow.cpp

index 28dd6281a92602bb8dd44521e8cc83b8ad789331..0c69506947d7bfbd6afa3713046bf04ac4a99371 100644 (file)
@@ -798,7 +798,7 @@ void MainWindow::initConnections()
     connect(m_ui.actionShowErrorsDock, SIGNAL(triggered(bool)),
             m_ui.errorsDock, SLOT(setVisible(bool)));
     connect(m_ui.errorsTreeWidget,
-            SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
+            SIGNAL(itemActivated(QTreeWidgetItem*, int)),
             this, SLOT(slotErrorSelected(QTreeWidgetItem*)));
 }