mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[TabPreviews] Do not show tab previews when they are disabled in prefences
This commit is contained in:
parent
58a485fb6d
commit
93927dfa1e
@ -492,6 +492,10 @@ void TabBar::restoreTabTextColor(int index)
|
|||||||
|
|
||||||
void TabBar::showTabPreview(bool delayed)
|
void TabBar::showTabPreview(bool delayed)
|
||||||
{
|
{
|
||||||
|
if (!m_showTabPreviews) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (delayed) {
|
if (delayed) {
|
||||||
int index = tabAt(mapFromGlobal(QCursor::pos()));
|
int index = tabAt(mapFromGlobal(QCursor::pos()));
|
||||||
if (index == -1 || QApplication::mouseButtons() != Qt::NoButton) {
|
if (index == -1 || QApplication::mouseButtons() != Qt::NoButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user