(qt) #5270 'Details > Comment field loses selection': fixed

This commit is contained in:
Jordan Lee 2013-02-03 18:36:10 +00:00
parent 5dab28ee9c
commit 95541c4ebe
1 changed files with 4 additions and 2 deletions

View 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 ())