From 95541c4ebeabf7bfb0e7b3f7baf24cb9d9a516c8 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 3 Feb 2013 18:36:10 +0000 Subject: [PATCH] (qt) #5270 'Details > Comment field loses selection': fixed --- qt/details.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/details.cc b/qt/details.cc index e59f13f6c..8ef1887f7 100644 --- a/qt/details.cc +++ b/qt/details.cc @@ -632,8 +632,10 @@ Details :: refresh () } } } - myCommentBrowser->setText (string); - myCommentBrowser->setMaximumHeight (QWIDGETSIZE_MAX); + if (myCommentBrowser->toPlainText() != string) { + myCommentBrowser->setText (string); + myCommentBrowser->setMaximumHeight (QWIDGETSIZE_MAX); + } // myOriginLabel if (torrents.empty ()) -- 2.40.0