Revert "fix: right mouse on the history panel and favorite panel should not trigger the click event."

This reverts commit 80fdb8cb82.
This commit is contained in:
xiaoyifang 2022-12-01 10:19:48 +08:00
parent c8014b482a
commit b285749a35
2 changed files with 4 additions and 4 deletions

View file

@ -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 );
}

View file

@ -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 );
}