diff options
Diffstat (limited to 'Swift/QtUI/QtWebKitChatView.cpp')
| -rw-r--r-- | Swift/QtUI/QtWebKitChatView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtWebKitChatView.cpp b/Swift/QtUI/QtWebKitChatView.cpp index 57706d4..0c82e73 100644 --- a/Swift/QtUI/QtWebKitChatView.cpp +++ b/Swift/QtUI/QtWebKitChatView.cpp | |||
| @@ -418,6 +418,7 @@ static QWebElement findElementWithID(QWebElement document, QString elementName, | |||
| 418 | } | 418 | } |
| 419 | 419 | ||
| 420 | void QtWebKitChatView::setFileTransferProgress(QString id, const int percentageDone) { | 420 | void QtWebKitChatView::setFileTransferProgress(QString id, const int percentageDone) { |
| 421 | rememberScrolledToBottom(); | ||
| 421 | QWebElement ftElement = findElementWithID(document_, "div", id); | 422 | QWebElement ftElement = findElementWithID(document_, "div", id); |
| 422 | if (ftElement.isNull()) { | 423 | if (ftElement.isNull()) { |
| 423 | SWIFT_LOG(debug) << "Tried to access FT UI via invalid id!" << std::endl; | 424 | SWIFT_LOG(debug) << "Tried to access FT UI via invalid id!" << std::endl; |
| @@ -431,6 +432,7 @@ void QtWebKitChatView::setFileTransferProgress(QString id, const int percentageD | |||
| 431 | } | 432 | } |
| 432 | 433 | ||
| 433 | void QtWebKitChatView::setFileTransferStatus(QString id, const ChatWindow::FileTransferState state, const QString& /* msg */) { | 434 | void QtWebKitChatView::setFileTransferStatus(QString id, const ChatWindow::FileTransferState state, const QString& /* msg */) { |
| 435 | rememberScrolledToBottom(); | ||
| 434 | QWebElement ftElement = findElementWithID(document_, "div", id); | 436 | QWebElement ftElement = findElementWithID(document_, "div", id); |
| 435 | if (ftElement.isNull()) { | 437 | if (ftElement.isNull()) { |
| 436 | SWIFT_LOG(debug) << "Tried to access FT UI via invalid id! id = " << Q2PSTRING(id) << std::endl; | 438 | SWIFT_LOG(debug) << "Tried to access FT UI via invalid id! id = " << Q2PSTRING(id) << std::endl; |
Swift