We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e2185 commit c025188Copy full SHA for c025188
src/plugin/placesmodel/placesmodel.cpp
@@ -57,8 +57,12 @@ PlacesModel::PlacesModel(QObject *parent) :
57
m_locations = m_settings->value("storedLocations").toStringList();
58
}
59
60
- foreach (const QString &location, m_locations) {
61
- qDebug() << "Location: " << location;
+ // Make sure the directories exist
+ foreach(const auto& location, m_locations) {
62
+ if(!location.isEmpty() && QDir(location).exists())
63
+ qDebug() << "Location: " << location;
64
+ else
65
+ m_locations.removeOne(location);
66
67
68
initNewUserMountsWatcher();
0 commit comments