MCPcopy Create free account
hub / github.com/LMMS/lmms / tryToMakeAbsolute

Method tryToMakeAbsolute

src/core/SampleBuffer.cpp:1469–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467
1468
1469QString SampleBuffer::tryToMakeAbsolute(const QString& file)
1470{
1471 QFileInfo f(file);
1472
1473 if(f.isRelative())
1474 {
1475 f = QFileInfo(ConfigManager::inst()->userSamplesDir() + file);
1476
1477 if(! f.exists())
1478 {
1479 f = QFileInfo(ConfigManager::inst()->factorySamplesDir() + file);
1480 }
1481 }
1482
1483 if (f.exists()) {
1484 return f.absoluteFilePath();
1485 }
1486 return file;
1487}
1488
1489
1490

Callers 1

loadSettingsMethod · 0.80

Calls 2

existsMethod · 0.80
instFunction · 0.50

Tested by

no test coverage detected