From 9d1b1c55ac7204dbbedee97ce52c2cd1def2fd5b Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 13 May 2013 15:33:54 +0100 Subject: gui: Make "Details View" the default pane. Instead of the "Backtrace". --- gui/mainwindow.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e46fce6a..2891863a 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -121,13 +121,6 @@ void MainWindow::callItemSelected(const QModelIndex &index) if (event && event->type() == ApiTraceEvent::Call) { ApiTraceCall *call = static_cast(event); - if (!call->backtrace().isNull()) { - m_ui.backtraceBrowser->setText(call->backtrace()); - m_ui.backtraceDock->show(); - } - else { - m_ui.backtraceDock->hide(); - } m_ui.detailsDock->setWindowTitle( tr("Details View. Frame %1, Call %2") .arg(call->parentFrame() ? call->parentFrame()->number : 0) @@ -157,6 +150,8 @@ void MainWindow::callItemSelected(const QModelIndex &index) } } } + m_ui.backtraceBrowser->setText(call->backtrace()); + m_ui.backtraceDock->setVisible(!call->backtrace().isNull()); m_ui.vertexDataDock->setVisible(call->hasBinaryData()); m_selectedEvent = call; } else { -- cgit v1.2.3