Dropping files into the editor shouldn't insert file:///...
On some desktop environments, dragging and dropping a file gives us the url to the file in multiple mime types, including text/plain. This causes the url to be inserted as text by default. Work around this issue by explicitly ignoring drop events for the text editor when they also come with urls. Task-number: QTCREATORBUG-728 Reviewed-by: Friedemann Kleint
Showing
- src/plugins/coreplugin/mainwindow.cpp 1 addition, 3 deletionssrc/plugins/coreplugin/mainwindow.cpp
- src/plugins/texteditor/basetexteditor.cpp 11 additions, 0 deletionssrc/plugins/texteditor/basetexteditor.cpp
- src/plugins/texteditor/basetexteditor.h 2 additions, 0 deletionssrc/plugins/texteditor/basetexteditor.h
Loading
Please register or sign in to comment