]> git.lyx.org Git - features.git/commitdiff
Fix the assert on Windows when starting LyX by double-clicking on a file.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 12 May 2009 20:12:04 +0000 (20:12 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 12 May 2009 20:12:04 +0000 (20:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29646 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index bb99d1788ff63b19f6258fa9f97b0480628288a4..0684c20a54669ec6aca2df5c83d6e986d5613efc 100644 (file)
@@ -105,7 +105,7 @@ struct FileName::Private
 
        Private(string const & abs_filename) : fi(toqstr(abs_filename))
        {
-               name = abs_filename;
+               name = fromqstr(fi.absoluteFilePath());
                fi.setCaching(fi.exists() ? true : false);
        }
        ///