Mercurial > octave
diff libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @ 20137:4ba6c61c8794
no copying of empty text in terminal when copy shortcut is not Ctrl-C
* TerminalView.cpp (copyClipboard):
* QWinTerminalImpl.cpp (copyClipboard):
in the case of an extra interrupt action, do not copy to clipboard
without correctly checking for selected text
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 27 Apr 2015 16:48:37 +0200 |
parents | 88233ac3f3ea |
children | bac0d6f07a3e |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp Fri Apr 24 23:36:59 2015 -0500 +++ b/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp Mon Apr 27 16:48:37 2015 +0200 @@ -1769,12 +1769,14 @@ QString selection = d->getSelection (); - if (selection.isEmpty () && ! _extra_interrupt) - terminal_interrupt (); + if (selection.isEmpty ()) + { + if (! _extra_interrupt) + terminal_interrupt (); + } else { clipboard->setText (selection); - emit report_status_message (tr ("copied selection to clipboard")); } }