From: José Fonseca Date: Sat, 28 May 2011 10:13:01 +0000 (+0100) Subject: Remove the empty default state message box. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d7226d1d11a549975e0b7564a0a8d64a328fc895;p=apitrace Remove the empty default state message box. The answer is not remembered across multiple qapitrace processes, and reading the default state is so fast that it's not even really worth asking. --- diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 9d8748d..183ba40 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -927,17 +927,6 @@ void MainWindow::fillState(bool nonDefaults) m_ui.nonDefaultsCB->blockSignals(true); m_ui.nonDefaultsCB->setChecked(false); m_ui.nonDefaultsCB->blockSignals(false); - int ret = QMessageBox::question( - this, tr("Empty Default State"), - tr("The applcation needs to figure out the " - "default state for the current trace. " - "This only has to be done once and " - "afterwards you will be able to enable " - "displaying of non default state for all calls." - "\nDo you want to lookup the default state now?"), - QMessageBox::Yes | QMessageBox::No); - if (ret != QMessageBox::Yes) - return; ApiTraceFrame *firstFrame = m_trace->frameAt(0); ApiTraceEvent *oldSelected = m_selectedEvent;