blob: e85bcf91d04631627101e6700a1493d59a2d74a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "track/trackfile.h"
QString TrackFile::freshCanonicalLocation() {
// Note: We return here the cached value, that was calculated just after
// init this TrackFile object. This will avoid repeated use of the time
// consuming file IO.
QString loc = canonicalLocation();
if (loc.isEmpty()) {
// Refresh the cached file info and try again
m_fileInfo.refresh();
loc = canonicalLocation();
}
return loc;
}
|