From: José Fonseca Date: Sun, 30 Oct 2011 10:49:19 +0000 (+0000) Subject: Only jump to errors when the error item is activated. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=18919896f897aab0514d4ae5330a71cd654edb4a;p=apitrace Only jump to errors when the error item is activated. 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. --- diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 28dd628..0c69506 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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*))); }