mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
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:
parent
c8014b482a
commit
b285749a35
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue