From f7a4ff9f5aa4e5a7b7ea3b6c0a4601947f8344d7 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 10 Jul 2019 02:36:30 +0200 Subject: Avoid refreshing Data tab each time directoryStructure is refreshed if the tab is not active. --- src/mainwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f9e4138e..451ec688 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2563,8 +2563,14 @@ void MainWindow::directory_refreshed() { // some problem-reports may rely on the virtual directory tree so they need to be updated // now - refreshDataTreeKeepExpandedNodes(); updateProblemsButton(); + + + //Some better check for the current tab is needed. + if (ui->tabWidget->currentIndex() == 2) { + refreshDataTreeKeepExpandedNodes(); + } + } void MainWindow::esplist_changed() -- cgit v1.3.1