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()
{
int nrTab = count();
for (int i = 0; i < nrTab; ++i) {
getTab(i)->checkFileChangeOutside();
// Only check current tab.
VEditTab *tab = getCurrentTab();
if (tab) {
tab->checkFileChangeOutside();
}
}