From 0df0e32b22541e4300e18096fcf59068923db05a Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 27 Aug 2006 16:10:41 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiWorkArea.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 48437bb1c9..b9da820acc 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -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)); } -- 2.39.2