Changeset View
Changeset View
Standalone View
Standalone View
src/file/fileindexerconfig.cpp
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 147 | { | |||
---|---|---|---|---|---|
163 | } | 163 | } | ||
164 | 164 | | |||
165 | return false; | 165 | return false; | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | bool FileIndexerConfig::shouldBeIndexed(const QString& path) const | 168 | bool FileIndexerConfig::shouldBeIndexed(const QString& path) const | ||
169 | { | 169 | { | ||
170 | QFileInfo fi(path); | 170 | QFileInfo fi(path); | ||
171 | if (fi.isDir()) { | 171 | if (!fi.isExecutable()) { | ||
172 | return false; | ||||
173 | } else if (fi.isDir()) { | ||||
172 | return shouldFolderBeIndexed(path); | 174 | return shouldFolderBeIndexed(path); | ||
173 | } else { | 175 | } else { | ||
174 | return (shouldFolderBeIndexed(fi.absolutePath()) && | 176 | return (shouldFolderBeIndexed(fi.absolutePath()) && | ||
175 | (!fi.isHidden() || indexHiddenFilesAndFolders()) && | 177 | (!fi.isHidden() || indexHiddenFilesAndFolders()) && | ||
176 | shouldFileBeIndexed(fi.fileName())); | 178 | shouldFileBeIndexed(fi.fileName())); | ||
177 | } | 179 | } | ||
178 | } | 180 | } | ||
179 | 181 | | |||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |