Ignore dot folders on athlete open/backup/delete

Fixes #4392
This commit is contained in:
Alejandro Martinez
2023-09-03 21:45:23 -03:00
parent 951e5f360a
commit 733db9cb16

View File

@@ -2138,6 +2138,8 @@ MainWindow::setOpenTabMenu()
QString name = i.next();
SKIP_QTWE_CACHE // skip Folder Names created by QTWebEngine on Windows
if (name.startsWith(".")) continue; // ignore dot folders
// new action
QAction *action = new QAction(QString("%1").arg(name), this);
@@ -2180,6 +2182,8 @@ MainWindow::setBackupAthleteMenu()
QString name = i.next();
SKIP_QTWE_CACHE // skip Folder Names created by QTWebEngine on Windows
if (name.startsWith(".")) continue; // ignore dot folders
// new action
QAction *action = new QAction(QString("%1").arg(name), this);
@@ -2217,6 +2221,8 @@ MainWindow::setDeleteAthleteMenu()
QString name = i.next();
SKIP_QTWE_CACHE // skip Folder Names created by QTWebEngine on Windows
if (name.startsWith(".")) continue; // ignore dot folders
// new action
QAction *action = new QAction(QString("%1").arg(name), this);