}
+string FileName::onlyFileNameWithoutExt() const
+{
+ return fromqstr(d->fi.baseName());
+}
+
+
FileName FileName::onlyPath() const
{
FileName path;
void DocFileName::set(string const & name, string const & buffer_path)
{
FileName::set(name);
- if (!isAbsolute())
+ bool const nameIsAbsolute = isAbsolute();
+ save_abs_path_ = nameIsAbsolute;
+ if (!nameIsAbsolute)
FileName::set(makeAbsPath(name, buffer_path).absFilename());
zipped_valid_ = false;
}