mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
132ab09b38
commit
0df0e32b22
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user