mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-28 00:50:26 +01:00
fix #507
This commit is contained in:
parent
a87e09d49a
commit
2888458e47
@ -221,7 +221,14 @@ void MessagesView::setupAppearance() {
|
|||||||
void MessagesView::focusInEvent(QFocusEvent* event) {
|
void MessagesView::focusInEvent(QFocusEvent* event) {
|
||||||
QTreeView::focusInEvent(event);
|
QTreeView::focusInEvent(event);
|
||||||
|
|
||||||
if (currentIndex().isValid()) {
|
qDebugNN << LOGSEC_GUI
|
||||||
|
<< "Message list got focus with reason"
|
||||||
|
<< QUOTE_W_SPACE_DOT(event->reason());
|
||||||
|
|
||||||
|
if ((event->reason()== Qt::FocusReason::TabFocusReason ||
|
||||||
|
event->reason()== Qt::FocusReason::BacktabFocusReason ||
|
||||||
|
event->reason()== Qt::FocusReason::ShortcutFocusReason) &&
|
||||||
|
currentIndex().isValid()) {
|
||||||
selectionModel()->select(currentIndex(), QItemSelectionModel::SelectionFlag::Select | QItemSelectionModel::SelectionFlag::Rows);
|
selectionModel()->select(currentIndex(), QItemSelectionModel::SelectionFlag::Select | QItemSelectionModel::SelectionFlag::Rows);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ void WebBrowser::loadMessages(const QList<Message>& messages, RootItem* root) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WebBrowser::loadMessage(const Message& message, RootItem* root) {
|
void WebBrowser::loadMessage(const Message& message, RootItem* root) {
|
||||||
loadMessages(QList<Message>() << message, root);
|
loadMessages({ message }, root);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebBrowser::eventFilter(QObject* watched, QEvent* event) {
|
bool WebBrowser::eventFilter(QObject* watched, QEvent* event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user