mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-27 08:33:27 +01:00
Save work.
This commit is contained in:
parent
f2d9d081ad
commit
a1f3b7923c
@ -239,7 +239,6 @@ void FeedMessageViewer::createConnections() {
|
||||
connect(m_messagesView, SIGNAL(currentMessageChanged(Message,RootItem*)), this, SLOT(updateMessageButtonsAvailability()));
|
||||
connect(m_messagesBrowser, SIGNAL(requestMessageListReload(bool)), m_messagesView, SLOT(reloadSelections(bool)));
|
||||
|
||||
|
||||
connect(m_feedsView, SIGNAL(itemSelected(RootItem*)), this, SLOT(updateFeedButtonsAvailability()));
|
||||
connect(qApp->feedUpdateLock(), SIGNAL(locked()), this, SLOT(updateFeedButtonsAvailability()));
|
||||
connect(qApp->feedUpdateLock(), SIGNAL(unlocked()), this, SLOT(updateFeedButtonsAvailability()));
|
||||
|
@ -68,11 +68,12 @@ void MessagesView::keyboardSearch(const QString &search) {
|
||||
}
|
||||
|
||||
void MessagesView::reloadSelections(bool mark_current_index_read) {
|
||||
QDateTime dt1 = QDateTime::currentDateTime();
|
||||
|
||||
QModelIndex current_index = selectionModel()->currentIndex();
|
||||
const QModelIndex mapped_current_index = m_proxyModel->mapToSource(current_index);
|
||||
QModelIndexList selected_indexes = selectionModel()->selectedRows();
|
||||
const QModelIndexList mapped_indexes = m_proxyModel->mapListToSource(selected_indexes);
|
||||
|
||||
const int col = qApp->settings()->value(GROUP(GUI), SETTING(GUI::DefaultSortColumnMessages)).toInt();
|
||||
const Qt::SortOrder ord = static_cast<Qt::SortOrder>(qApp->settings()->value(GROUP(GUI), SETTING(GUI::DefaultSortOrderMessages)).toInt());
|
||||
|
||||
@ -99,6 +100,10 @@ void MessagesView::reloadSelections(bool mark_current_index_read) {
|
||||
// be selected and no message can be displayed.
|
||||
emit currentMessageRemoved();
|
||||
}
|
||||
|
||||
QDateTime dt2 = QDateTime::currentDateTime();
|
||||
|
||||
qDebug("Reloading of msg selections took %lld miliseconds.", dt1.msecsTo(dt2));
|
||||
}
|
||||
|
||||
void MessagesView::setupAppearance() {
|
||||
|
Loading…
Reference in New Issue
Block a user