VEditArea: only check outside change of files in active tabs

This commit is contained in:
Le Tan 2018-09-29 18:38:32 +08:00
parent 751082c820
commit a67584f8bb

View File

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