Mercurial > octave
changeset 23340:4eff94123bea stable
disable qscintilla editor drag and drop so parent will handle it (Bug #50559)
* libgui/src/m-editor/file-editor-tab.cc:
(file_editor_tab::file_editor_tab): disable editor widget drag and drops
author | John D |
---|---|
date | Mon, 03 Apr 2017 07:53:30 -0400 |
parents | 0f1e9743b0a9 |
children | b4f386ee712f 43f549ac6dac |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc Mon Mar 27 23:57:06 2017 +0200 +++ b/libgui/src/m-editor/file-editor-tab.cc Mon Apr 03 07:53:30 2017 -0400 @@ -109,6 +109,9 @@ _bp_lines.clear (); // start with empty lists of breakpoints _bp_conditions.clear (); + // disable editor drag & drop so parent can handle + _edit_area->setAcceptDrops (false); + connect (_edit_area, SIGNAL (cursorPositionChanged (int, int)), this, SLOT (handle_cursor_moved (int,int)));