]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
cosmetics
[lyx.git] / src / BufferList.cpp
index e3fb568c7c5e8c69cc954a11eb1f1a8eb937cc75..24bb2424f094c92ae52e05999c021c92448c61c7 100644 (file)
@@ -99,10 +99,12 @@ bool BufferList::quitWriteBuffer(Buffer * buf)
        BOOST_ASSERT(buf);
 
        docstring file;
+
+       // FIXME: Unicode?
        if (buf->isUnnamed())
-               file = from_utf8(onlyFilename(buf->absFileName()));
+               file = from_utf8(buf->fileName().onlyFileName());
        else
-               file = makeDisplayPath(buf->absFileName(), 30);
+               file = buf->fileName().displayName(30);
 
        docstring const text =
                bformat(_("The document %1$s has unsaved changes.\n\n"