diff --git a/src/Gui/ChooseCyclistDialog.cpp b/src/Gui/ChooseCyclistDialog.cpp index 923a5d31a..eca8d8d91 100644 --- a/src/Gui/ChooseCyclistDialog.cpp +++ b/src/Gui/ChooseCyclistDialog.cpp @@ -97,7 +97,14 @@ ChooseCyclistDialog::getList() QStringListIterator i(home.entryList(QDir::Dirs | QDir::NoDotAndDotDot)); while (i.hasNext()) { QString name = i.next(); - +#ifdef NOWEBKIT +#ifdef WIN32 + // QtWebEngine puts it's cache into the User directory (only on Windows) - so do not show in list + QStringList webEngineDirs; + webEngineDirs << "QtWebEngine" << "cache"; + if (webEngineDirs.contains(name)) continue; +#endif +#endif QListWidgetItem *newone = new QListWidgetItem(name, listWidget); // get avatar image if it exists diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 9d685d475..2b0f16969 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1766,7 +1766,14 @@ MainWindow::setOpenWindowMenu() while (i.hasNext()) { QString name = i.next(); - +#ifdef NOWEBKIT +#ifdef WIN32 + // QtWebEngine puts it's cache into the User directory (only on Windows) - so do not show in list + QStringList webEngineDirs; + webEngineDirs << "QtWebEngine" << "cache"; + if (webEngineDirs.contains(name)) continue; +#endif +#endif // new action QAction *action = new QAction(QString("%1").arg(name), this); @@ -1808,7 +1815,14 @@ MainWindow::setOpenTabMenu() while (i.hasNext()) { QString name = i.next(); - +#ifdef NOWEBKIT +#ifdef WIN32 + // QtWebEngine puts it's cache into the User directory (only on Windows) - so do not show in list + QStringList webEngineDirs; + webEngineDirs << "QtWebEngine" << "cache"; + if (webEngineDirs.contains(name)) continue; +#endif +#endif // new action QAction *action = new QAction(QString("%1").arg(name), this); @@ -1850,7 +1864,14 @@ MainWindow::setBackupAthleteMenu() while (i.hasNext()) { QString name = i.next(); - +#ifdef NOWEBKIT +#ifdef WIN32 + // QtWebEngine puts it's cache into the User directory (only on Windows) - so do not show in list + QStringList webEngineDirs; + webEngineDirs << "QtWebEngine" << "cache"; + if (webEngineDirs.contains(name)) continue; +#endif +#endif // new action QAction *action = new QAction(QString("%1").arg(name), this);