mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
TabIcon: Don't resize to (0,0) when hiding
ComboTabBar depends on tab button position for calculating drag offset and it breaks with some themes that returns invalid subElementRect for buttons with (0,0) size.
This commit is contained in:
parent
cf5831d1db
commit
0b1d9e0b16
|
@ -1,6 +1,6 @@
|
|||
/* ============================================================
|
||||
* Falkon - Qt web browser
|
||||
* Copyright (C) 2014-2017 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2014-2018 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -136,7 +136,7 @@ void TabIcon::hide()
|
|||
}
|
||||
|
||||
emit resized();
|
||||
setFixedSize(0, 0);
|
||||
setFixedSize(1, 16);
|
||||
QWidget::hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user