Skip to content

Commit

Permalink
Don't copy timestamps in normal copy (Mudlet#4959)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 authored Mar 14, 2021
1 parent c6a6de4 commit 9571f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TTextEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ void TTextEdit::highlightSelection()
QClipboard* clipboard = QApplication::clipboard();
if (clipboard->supportsSelection()) {
// X11 has a second clipboard that's updated on any selection
clipboard->setText(getSelectedText(QChar::LineFeed, mShowTimeStamps), QClipboard::Selection);
clipboard->setText(getSelectedText(QChar::LineFeed), QClipboard::Selection);
}
}

Expand Down Expand Up @@ -1422,7 +1422,7 @@ void TTextEdit::slot_copySelectionToClipboard()
return;
}

QString selectedText = getSelectedText(QChar::LineFeed, mShowTimeStamps);
QString selectedText = getSelectedText(QChar::LineFeed);
QClipboard* clipboard = QApplication::clipboard();
clipboard->setText(selectedText);
}
Expand Down

0 comments on commit 9571f21

Please sign in to comment.