Tweak multi-selection messages behavior.

This commit is contained in:
Martin Rotter 2016-08-10 13:09:02 +02:00
parent ef7afcc839
commit da16f55d18
2 changed files with 4 additions and 3 deletions

View File

@ -7,10 +7,11 @@ Added:
▪ Application settings now offers "Apply" button which saves settings without closing the dialog. (issue #16)
Fixed:
▪ Correct message is now selected after some feed gets updated. (bug #46)
▪ Correct message is now selected after some feed gets updated. Multi-selection is not maintained, only focused ("current") message selection is. (bug #46)
▪ RSS Guard correctly saves windows size/position when maximized on exit. (bug #45)
Changed:
▪ Focused message is now displayed in previewer when multiple messages are selected. This is related to bug #46.
▪ MariaDB binary DLL file updated to 10.1.16 (Windows only).
3.3.2

View File

@ -232,8 +232,8 @@ void MessagesView::selectionChanged(const QItemSelection &selected, const QItemS
current_index.row(), current_index.column(),
mapped_current_index.row(), mapped_current_index.column());
if (mapped_current_index.isValid() && selected_rows.count() == 1) {
Message message = m_sourceModel->messageAt(m_proxyModel->mapToSource(selected_rows.at(0)).row());
if (mapped_current_index.isValid() && selected_rows.count() > 0) {
Message message = m_sourceModel->messageAt(m_proxyModel->mapToSource(current_index).row());
if (!m_batchUnreadSwitch) {
// Set this message as read only if current item