| 1830 | } |
| 1831 | |
| 1832 | std::string |
| 1833 | SequenceFileDialog::selectedDirectory() const |
| 1834 | { |
| 1835 | std::string path = _requestedDir.toStdString(); |
| 1836 | |
| 1837 | if (_relativePathsAllowed) { |
| 1838 | std::string pathName, pathValue; |
| 1839 | bool relative = getRelativeChoiceProjectPath(pathName, pathValue); |
| 1840 | if (relative) { |
| 1841 | Project::makeRelativeToVariable(pathName, pathValue, path); |
| 1842 | } |
| 1843 | } |
| 1844 | |
| 1845 | |
| 1846 | #ifdef __NATRON_WIN32__ |
| 1847 | if (appPTR->getCurrentSettings()->isDriveLetterToUNCPathConversionEnabled()) { |
| 1848 | QString ret = FileSystemModel::mapPathWithDriveLetterToPathWithNetworkShareName( QString::fromUtf8( path.c_str() ) ); |
| 1849 | path = ret.toStdString(); |
| 1850 | } |
| 1851 | #endif |
| 1852 | |
| 1853 | return path; |
| 1854 | } |
| 1855 | |
| 1856 | QModelIndex |
| 1857 | SequenceFileDialog::select(const QModelIndex & index) |
no test coverage detected