Don't copy an empty string to the clipboard. Ideally this should be handled by disable-ing the menu/shortcuts for Copy/Cut/Paste (Wish 203768).

BUG: 188725

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1076289
wilder-portage
Kurt Hindenburg 16 years ago
parent f902e843de
commit 533599ab1e
  1. 3
      src/TerminalDisplay.cpp

@ -2444,7 +2444,8 @@ void TerminalDisplay::copyClipboard()
return;
QString text = _screenWindow->selectedText(_preserveLineBreaks);
QApplication::clipboard()->setText(text);
if (!text.isEmpty())
QApplication::clipboard()->setText(text);
}
void TerminalDisplay::pasteClipboard()

Loading…
Cancel
Save