From 733db9cb1621850643784f65ab29207c842c2156 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Sun, 3 Sep 2023 21:45:23 -0300 Subject: [PATCH] Ignore dot folders on athlete open/backup/delete Fixes #4392 --- src/Gui/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index fb4f71013..d6073bb0f 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -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);