On Windows, LyX fails to open a file dropped from a shared drive, i.e.,
from an explorer window whose path is something like \\host\path.
The attached patch fixes this. It took a while to understand that it
was not me messing with paths in the cygwin port of Qt4 ;-)
--
Enrico
Index: src/frontends/qt4/GuiWorkArea.C
===================================================================
--- src/frontends/qt4/GuiWorkArea.C (revision 14845)
+++ src/frontends/qt4/GuiWorkArea.C (working copy)
@@ -221,7 +221,7 @@ void GuiWorkArea::dropEvent(QDropEvent*
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));
}