Commit bd04911a authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 369146 - Reading email advancing with "space" doesn't jump to next...

Fix Bug 369146 - Reading email advancing with "space" doesn't jump to next unread at end of current email

FIXED-IN: 5.3.2
BUG: 369146
parent e308f183
......@@ -1033,6 +1033,8 @@ void KMMainWidget::createWidgets()
this, &KMMainWidget::slotMoveMessageToTrash);
connect(mMsgView->viewer(), &MessageViewer::Viewer::executeMailAction,
this, &KMMainWidget::slotExecuteMailAction);
connect(mMsgView->viewer(), &MessageViewer::Viewer::pageIsScrolledToBottom,
this, &KMMainWidget::slotPageIsScrolledToBottom);
if (mShowIntroductionAction) {
mShowIntroductionAction->setEnabled(true);
}
......@@ -3586,7 +3588,12 @@ void KMMainWidget::slotReadOn()
if (!mMsgView) {
return;
}
if (mMsgView->viewer()->atBottom()) {
mMsgView->viewer()->atBottom();
}
void KMMainWidget::slotPageIsScrolledToBottom(bool isAtBottom)
{
if (isAtBottom) {
slotSelectNextUnreadMessage();
} else {
mMsgView->viewer()->slotJumpDown();
......
......@@ -561,6 +561,7 @@ private Q_SLOTS:
void slotRedirectCurrentMessage();
void slotEditCurrentVacation();
private:
void slotPageIsScrolledToBottom(bool isAtBottom);
void printCurrentMessage(bool preview);
void replyCurrentMessageCommand(MessageComposer::ReplyStrategy strategy);
// Message actions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment