mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-22 21:52:51 +02:00
Fix right Open button in search results.
This commit is contained in:
parent
01f191289d
commit
3e13186560
1 changed files with 11 additions and 7 deletions
|
@ -1790,9 +1790,10 @@ void InnerWidget::selectByMouse(QPoint globalPosition) {
|
|||
local.x(),
|
||||
mappedY);
|
||||
const auto selectedRightButton = (filteredSelected >= 0)
|
||||
&& lookupIsInBotAppButton(
|
||||
? lookupIsInBotAppButton(
|
||||
_filterResults[filteredSelected].row,
|
||||
QPoint(local.x(), mappedY));
|
||||
QPoint(local.x(), mappedY))
|
||||
: _selectedRightButton;
|
||||
if (_filteredSelected != filteredSelected
|
||||
|| _selectedTopicJump != selectedTopicJump
|
||||
|| _selectedRightButton != selectedRightButton) {
|
||||
|
@ -1813,10 +1814,11 @@ void InnerWidget::selectByMouse(QPoint globalPosition) {
|
|||
? mouseY - skip - (peerSearchSelected * st::dialogsRowHeight)
|
||||
: 0;
|
||||
const auto selectedRightButton = (peerSearchSelected >= 0)
|
||||
&& _peerSearchResults[peerSearchSelected]->sponsored
|
||||
&& lookupIsInRightButton(
|
||||
_peerSearchResults[peerSearchSelected]->sponsored->button,
|
||||
QPoint(local.x(), mappedY));
|
||||
? (_peerSearchResults[peerSearchSelected]->sponsored
|
||||
&& lookupIsInRightButton(
|
||||
_peerSearchResults[peerSearchSelected]->sponsored->button,
|
||||
QPoint(local.x(), mappedY)))
|
||||
: _selectedRightButton;
|
||||
if (_peerSearchSelected != peerSearchSelected
|
||||
|| _selectedRightButton != selectedRightButton) {
|
||||
updateSelectedRow();
|
||||
|
@ -2453,7 +2455,9 @@ void InnerWidget::mousePressReleased(
|
|||
|| (hashtagPressed >= 0
|
||||
&& hashtagPressed == _hashtagSelected
|
||||
&& hashtagDeletePressed == _hashtagDeleteSelected)
|
||||
|| (filteredPressed >= 0 && filteredPressed == _filteredSelected)
|
||||
|| (filteredPressed >= 0
|
||||
&& filteredPressed == _filteredSelected
|
||||
&& pressedRightButton == _selectedRightButton)
|
||||
|| (peerSearchPressed >= 0
|
||||
&& peerSearchPressed == _peerSearchSelected
|
||||
&& pressedRightButton == _selectedRightButton)
|
||||
|
|
Loading…
Add table
Reference in a new issue