]> git.cworth.org Git - apitrace/commitdiff
Clear the surfaces tree when changing calls.
authorZack Rusin <zack@kde.org>
Sun, 10 Apr 2011 06:47:25 +0000 (02:47 -0400)
committerZack Rusin <zack@kde.org>
Sun, 10 Apr 2011 06:47:25 +0000 (02:47 -0400)
gui/mainwindow.cpp

index 0838fcd5cda565597a89d5296b1831dd15d71738..6a290d8f51e2bf35a479761c91c4e4a3077a5454 100644 (file)
@@ -425,8 +425,8 @@ void MainWindow::fillStateForFrame()
     const QList<ApiTexture> &textures =
         state.textures();
 
+    m_ui.surfacesTreeWidget->clear();
     if (textures.isEmpty()) {
-        m_ui.surfacesTreeWidget->clear();
         m_ui.surfacesTab->setDisabled(false);
     } else {
         QTreeWidgetItem *textureItem =