Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Pim
Commits
67ea96e2
Commit
67ea96e2
authored
Mar 03, 2013
by
Frank Osterfeld
Browse files
When deleting an item, select the next one
CCBUG: 304055
parent
78fff90c
Changes
1
Hide whitespace changes
Inline
Side-by-side
akregator2/src/mainwidget.cpp
View file @
67ea96e2
...
...
@@ -985,6 +985,12 @@ void Akregator2::MainWidget::slotArticleDelete()
job
->
start
();
}
//Select the next item
const
QModelIndexList
indexes
=
m_articleListView
->
selectionModel
()
->
selectedRows
();
if
(
indexes
.
size
()
==
1
)
{
const
QModelIndex
nextItem
=
indexes
[
0
].
sibling
(
indexes
[
0
].
row
()
+
1
,
0
);
m_articleListView
->
selectionModel
()
->
select
(
nextItem
,
QItemSelectionModel
::
ClearAndSelect
|
QItemSelectionModel
::
Rows
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment