From 6e40f639b7bd28fec21a2a1902684ddd61d0281d Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 16 Jan 2021 03:12:34 +0100 Subject: [PATCH] Turn off undo/redo stack for QTextDocument in playwidget details --- src/widgets/playingwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/playingwidget.cpp b/src/widgets/playingwidget.cpp index 59a5c5c15..085dec7c5 100644 --- a/src/widgets/playingwidget.cpp +++ b/src/widgets/playingwidget.cpp @@ -115,6 +115,7 @@ PlayingWidget::PlayingWidget(QWidget *parent) connect(timeline_fade_, SIGNAL(valueChanged(qreal)), SLOT(FadePreviousTrack(qreal))); timeline_fade_->setDirection(QTimeLine::Backward); // 1.0 -> 0.0 + details_->setUndoRedoEnabled(false); // add placeholder text to get the correct height if (mode_ == LargeSongDetails) { details_->setDefaultStyleSheet("p { font-size: small; font-weight: bold; }");