]> git.cworth.org Git - apitrace/commitdiff
Remove the empty default state message box.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 28 May 2011 10:13:01 +0000 (11:13 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 28 May 2011 10:13:01 +0000 (11:13 +0100)
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.

gui/mainwindow.cpp

index 9d8748d7699fe0c8e624d6bbdfaaa25259bf9425..183ba401980034f1eda98deaa3b33c32b17f8d96 100644 (file)
@@ -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;