mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-06 20:13:12 +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(),
|
local.x(),
|
||||||
mappedY);
|
mappedY);
|
||||||
const auto selectedRightButton = (filteredSelected >= 0)
|
const auto selectedRightButton = (filteredSelected >= 0)
|
||||||
&& lookupIsInBotAppButton(
|
? lookupIsInBotAppButton(
|
||||||
_filterResults[filteredSelected].row,
|
_filterResults[filteredSelected].row,
|
||||||
QPoint(local.x(), mappedY));
|
QPoint(local.x(), mappedY))
|
||||||
|
: _selectedRightButton;
|
||||||
if (_filteredSelected != filteredSelected
|
if (_filteredSelected != filteredSelected
|
||||||
|| _selectedTopicJump != selectedTopicJump
|
|| _selectedTopicJump != selectedTopicJump
|
||||||
|| _selectedRightButton != selectedRightButton) {
|
|| _selectedRightButton != selectedRightButton) {
|
||||||
|
@ -1813,10 +1814,11 @@ void InnerWidget::selectByMouse(QPoint globalPosition) {
|
||||||
? mouseY - skip - (peerSearchSelected * st::dialogsRowHeight)
|
? mouseY - skip - (peerSearchSelected * st::dialogsRowHeight)
|
||||||
: 0;
|
: 0;
|
||||||
const auto selectedRightButton = (peerSearchSelected >= 0)
|
const auto selectedRightButton = (peerSearchSelected >= 0)
|
||||||
&& _peerSearchResults[peerSearchSelected]->sponsored
|
? (_peerSearchResults[peerSearchSelected]->sponsored
|
||||||
&& lookupIsInRightButton(
|
&& lookupIsInRightButton(
|
||||||
_peerSearchResults[peerSearchSelected]->sponsored->button,
|
_peerSearchResults[peerSearchSelected]->sponsored->button,
|
||||||
QPoint(local.x(), mappedY));
|
QPoint(local.x(), mappedY)))
|
||||||
|
: _selectedRightButton;
|
||||||
if (_peerSearchSelected != peerSearchSelected
|
if (_peerSearchSelected != peerSearchSelected
|
||||||
|| _selectedRightButton != selectedRightButton) {
|
|| _selectedRightButton != selectedRightButton) {
|
||||||
updateSelectedRow();
|
updateSelectedRow();
|
||||||
|
@ -2453,7 +2455,9 @@ void InnerWidget::mousePressReleased(
|
||||||
|| (hashtagPressed >= 0
|
|| (hashtagPressed >= 0
|
||||||
&& hashtagPressed == _hashtagSelected
|
&& hashtagPressed == _hashtagSelected
|
||||||
&& hashtagDeletePressed == _hashtagDeleteSelected)
|
&& hashtagDeletePressed == _hashtagDeleteSelected)
|
||||||
|| (filteredPressed >= 0 && filteredPressed == _filteredSelected)
|
|| (filteredPressed >= 0
|
||||||
|
&& filteredPressed == _filteredSelected
|
||||||
|
&& pressedRightButton == _selectedRightButton)
|
||||||
|| (peerSearchPressed >= 0
|
|| (peerSearchPressed >= 0
|
||||||
&& peerSearchPressed == _peerSearchSelected
|
&& peerSearchPressed == _peerSearchSelected
|
||||||
&& pressedRightButton == _selectedRightButton)
|
&& pressedRightButton == _selectedRightButton)
|
||||||
|
|
Loading…
Add table
Reference in a new issue