From 6d554ab81295eca3e8ab38a70c79841bbf6369fc Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sun, 10 Apr 2011 02:47:25 -0400 Subject: [PATCH] Clear the surfaces tree when changing calls. --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 0838fcd..6a290d8 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -425,8 +425,8 @@ void MainWindow::fillStateForFrame() const QList &textures = state.textures(); + m_ui.surfacesTreeWidget->clear(); if (textures.isEmpty()) { - m_ui.surfacesTreeWidget->clear(); m_ui.surfacesTab->setDisabled(false); } else { QTreeWidgetItem *textureItem = -- 2.43.0