mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
VEditArea: only check outside change of files in active tabs
This commit is contained in:
parent
751082c820
commit
a67584f8bb
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user