From b285749a359fb807a10db14ad89438b14d36f4e2 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Thu, 1 Dec 2022 10:19:48 +0800 Subject: [PATCH] Revert "fix: right mouse on the history panel and favorite panel should not trigger the click event." This reverts commit 80fdb8cb822652d0ab948be1c88b55793967d120. --- favoritespanewidget.cc | 4 ++-- historypanewidget.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/favoritespanewidget.cc b/favoritespanewidget.cc index 5facb8e3..4b8d1c41 100644 --- a/favoritespanewidget.cc +++ b/favoritespanewidget.cc @@ -208,12 +208,12 @@ void FavoritesPaneWidget::onSelectionChanged( QItemSelection const & selection ) return; itemSelectionChanged = true; -// emitFavoritesItemRequested( selection.indexes().front() ); + emitFavoritesItemRequested( selection.indexes().front() ); } void FavoritesPaneWidget::onItemClicked( QModelIndex const & idx ) { -// if ( !itemSelectionChanged && m_favoritesTree->selectionModel()->selectedIndexes().size() == 1 ) + if ( !itemSelectionChanged && m_favoritesTree->selectionModel()->selectedIndexes().size() == 1 ) { emitFavoritesItemRequested( idx ); } diff --git a/historypanewidget.cc b/historypanewidget.cc index 2a47fdd9..81216b94 100644 --- a/historypanewidget.cc +++ b/historypanewidget.cc @@ -202,14 +202,14 @@ void HistoryPaneWidget::onSelectionChanged( QItemSelection const & selection ) return; itemSelectionChanged = true; -// emitHistoryItemRequested( selection.front().topLeft() ); + emitHistoryItemRequested( selection.front().topLeft() ); } void HistoryPaneWidget::onItemClicked( QModelIndex const & idx ) { // qDebug() << "clicked"; -// if ( !itemSelectionChanged ) + if ( !itemSelectionChanged ) { emitHistoryItemRequested( idx ); }