25 #include "documentloader.h" |
25 #include "documentloader.h" |
26 #include "glRenderer.h" |
26 #include "glRenderer.h" |
27 |
27 |
28 ConfigOption (QStringList RecentFiles) |
28 ConfigOption (QStringList RecentFiles) |
29 ConfigOption (bool TryDownloadMissingFiles = false) |
29 ConfigOption (bool TryDownloadMissingFiles = false) |
|
30 const QStringList DocumentManager::specialSubdirectories {"s", "48", "8"}; |
30 |
31 |
31 enum |
32 enum |
32 { |
33 { |
33 MaxRecentFiles = 10 |
34 MaxRecentFiles = 10 |
34 }; |
35 }; |
206 if (fileinfo.exists()) |
207 if (fileinfo.exists()) |
207 { |
208 { |
208 // Ensure we don't mix subfiles and 48-primitives with non-subfiles and non-48 |
209 // Ensure we don't mix subfiles and 48-primitives with non-subfiles and non-48 |
209 QString partTopDir = Basename (Dirname (partpath)); |
210 QString partTopDir = Basename (Dirname (partpath)); |
210 |
211 |
211 for (QString subdir : g_specialSubdirectories) |
212 for (QString subdir : specialSubdirectories) |
212 { |
213 { |
213 if ((partTopDir == subdir) != (relativeTopDir == subdir)) |
214 if ((partTopDir == subdir) != (relativeTopDir == subdir)) |
214 goto skipthis; |
215 goto skipthis; |
215 } |
216 } |
216 |
217 |