| 995 | } |
| 996 | |
| 997 | void LiveDataSource::finalizeLoad() { |
| 998 | // convert from the relative path saved in the project file to the absolute file to work with |
| 999 | if (m_relativePath) { |
| 1000 | QFileInfo fi(project()->fileName()); |
| 1001 | m_fileName = fi.dir().absoluteFilePath(m_fileName); |
| 1002 | } |
| 1003 | |
| 1004 | // read the content of the file if it was only linked |
| 1005 | if (m_fileLinked && QFile::exists(m_fileName)) |
| 1006 | this->read(); |
| 1007 | |
| 1008 | // call setUpdateType() to start watching the file for changes, is required |
| 1009 | setUpdateType(m_updateType); |
| 1010 | } |