diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-07-10 02:36:30 +0200 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-07-10 02:36:30 +0200 |
| commit | f7a4ff9f5aa4e5a7b7ea3b6c0a4601947f8344d7 (patch) | |
| tree | c654690ab0585ae85b27227f479966339831b6b0 | |
| parent | 63f835628be1b82b3d5cc940b8e7797f7ccdf1be (diff) | |
Avoid refreshing Data tab each time directoryStructure is refreshed if the tab is not active.
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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() |
