diff --git a/src/gui/feedmessageviewer.cpp b/src/gui/feedmessageviewer.cpp index 147f98339..4580ca36d 100755 --- a/src/gui/feedmessageviewer.cpp +++ b/src/gui/feedmessageviewer.cpp @@ -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())); diff --git a/src/gui/messagesview.cpp b/src/gui/messagesview.cpp index ca1bef7d3..35b2fe75a 100755 --- a/src/gui/messagesview.cpp +++ b/src/gui/messagesview.cpp @@ -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(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() {