mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-11 04:01:18 +00:00
fixed pointer, version 0.8.45
This commit is contained in:
parent
0d381870a7
commit
ad8e3f36ad
@ -333,9 +333,6 @@ void DialogsListWidget::onUpdateSelected(bool force) {
|
|||||||
parentWidget()->update();
|
parentWidget()->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mouseY >= 0 && hashtagSel < 0 && filteredSel < 0 && peopleSel < 0 && searchedSel < 0) {
|
|
||||||
setCursor(style::cur_default);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -492,6 +489,7 @@ void DialogsListWidget::leaveEvent(QEvent *e) {
|
|||||||
if (sel || filteredSel >= 0 || hashtagSel >= 0 || searchedSel >= 0 || peopleSel >= 0) {
|
if (sel || filteredSel >= 0 || hashtagSel >= 0 || searchedSel >= 0 || peopleSel >= 0) {
|
||||||
sel = 0;
|
sel = 0;
|
||||||
filteredSel = searchedSel = peopleSel = hashtagSel = -1;
|
filteredSel = searchedSel = peopleSel = hashtagSel = -1;
|
||||||
|
setCursor(style::cur_default);
|
||||||
parentWidget()->update();
|
parentWidget()->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -840,6 +838,7 @@ void DialogsListWidget::setMouseSel(bool msel, bool toTop) {
|
|||||||
contactSel = !dialogs.list.count && contactsNoDialogs.list.count;
|
contactSel = !dialogs.list.count && contactsNoDialogs.list.count;
|
||||||
} else if (_state == FilteredState || _state == SearchedState) { // don't select first elem in search
|
} else if (_state == FilteredState || _state == SearchedState) { // don't select first elem in search
|
||||||
filteredSel = peopleSel = searchedSel = hashtagSel = -1;
|
filteredSel = peopleSel = searchedSel = hashtagSel = -1;
|
||||||
|
setCursor(style::cur_default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user