Browse Source

VEditArea: only check outside change of files in active tabs

Le Tan 7 years ago
parent
commit
a67584f8bb
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/veditwindow.cpp

+ 4 - 3
src/veditwindow.cpp

@@ -1265,9 +1265,10 @@ QVector<VEditTab *> VEditWindow::getAllTabs() const
 
 void VEditWindow::checkFileChangeOutside()
 {
-    int nrTab = count();
-    for (int i = 0; i < nrTab; ++i) {
-        getTab(i)->checkFileChangeOutside();
+    // Only check current tab.
+    VEditTab *tab = getCurrentTab();
+    if (tab) {
+        tab->checkFileChangeOutside();
     }
 }