fix dropping of UNC filenames on windows (from Enrico)

* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::dropEvent): Use toLocalFile instead of toString,
	because toString omits the first backslash of UNC paths.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14846 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-08-27 16:10:41 +00:00
parent 132ab09b38
commit 0df0e32b22

View File

@ -221,7 +221,7 @@ void GuiWorkArea::dropEvent(QDropEvent* event)
lyxerr[Debug::GUI] << "GuiWorkArea::dropEvent: got URIs!" << endl;
for (int i = 0; i!=files.size(); ++i) {
string const file = os::internal_path(fromqstr(files.at(i).toString()));
string const file = os::internal_path(fromqstr(files.at(i).toLocalFile()));
if (!file.empty())
dispatch(FuncRequest(LFUN_FILE_OPEN, file));
}