]> granicus.if.org Git - transmission/commitdiff
(qt) #5270 'Details > Comment field loses selection': fixed
authorJordan Lee <jordan@transmissionbt.com>
Sun, 3 Feb 2013 18:36:10 +0000 (18:36 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 3 Feb 2013 18:36:10 +0000 (18:36 +0000)
qt/details.cc

index e59f13f6c7bf5c2761d05fe1ee70930396ad857e..8ef1887f795e80fe15b9445faaabcab4c751b7d8 100644 (file)
@@ -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 ())