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()
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user