From: Jordan Lee Date: Sun, 3 Feb 2013 18:36:10 +0000 (+0000) Subject: (qt) #5270 'Details > Comment field loses selection': fixed X-Git-Tag: 2.80~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95541c4ebeabf7bfb0e7b3f7baf24cb9d9a516c8;p=transmission (qt) #5270 'Details > Comment field loses selection': fixed --- 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 ())