mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Fixed crash when showing multiple notifications with Tabs On Top.
This commit is contained in:
parent
749889dc73
commit
5b0f37abd5
|
@ -6,6 +6,7 @@ Version 1.4.0
|
|||
* added support for FTP listing files and downloading
|
||||
* added support for saving passwords of multiple users per site
|
||||
* added support for showing tabs on top
|
||||
* possibility to select text on page with Shift+Arrow keys
|
||||
* asking user whether to allow site to use notifications/geolocation
|
||||
* option to set JavaScript privacy permissions
|
||||
* option to specify default search engine used in locationbar
|
||||
|
|
|
@ -301,13 +301,13 @@ QPixmap WebTab::renderTabPreview()
|
|||
|
||||
void WebTab::showNotification(QWidget* notif)
|
||||
{
|
||||
const int notifPos = m_navigationContainer ? 2 : 1;
|
||||
const int notifPos = qzSettings->tabsOnTop ? 1 : 0;
|
||||
|
||||
if (m_layout->count() > notifPos) {
|
||||
delete m_layout->itemAt(0)->widget();
|
||||
if (m_layout->count() > notifPos + 1) {
|
||||
delete m_layout->itemAt(notifPos)->widget();
|
||||
}
|
||||
|
||||
m_layout->insertWidget(notifPos - 1, notif);
|
||||
m_layout->insertWidget(notifPos, notif);
|
||||
notif->show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user