]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.cpp
Now that exceptions are allowed, handle gracefully the case where a Buffer temp direc...
[lyx.git] / src / support / FileName.cpp
index c855d4a7e5b31f5cd28854ac46a585f09bfc02e5..298ef969fcce60a56ee5e6563bd3a2d29b0d631f 100644 (file)
@@ -262,13 +262,15 @@ bool FileName::isReadableDirectory() const
 
 string FileName::onlyFileName() const
 {
-       return support::onlyFilename(absFilename());
+       return fromqstr(d->fi.fileName());
 }
 
 
 FileName FileName::onlyPath() const
 {
-       return FileName(support::onlyPath(absFilename()));
+       FileName path;
+       path.d->fi.setFile(d->fi.filePath());
+       return path;
 }