From: Vincent van Ravesteijn Date: Tue, 12 May 2009 20:12:04 +0000 (+0000) Subject: Fix the assert on Windows when starting LyX by double-clicking on a file. X-Git-Tag: 2.0.0~6593 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2f8a71056b10fb539d39f4dc31297236fc4b6564;p=features.git Fix the assert on Windows when starting LyX by double-clicking on a file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29646 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index bb99d1788f..0684c20a54 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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); } ///