1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 10:16:34 +01:00

Fixed crash when showing multiple notifications with Tabs On Top.

This commit is contained in:
nowrep 2013-02-17 11:41:42 +01:00
parent 749889dc73
commit 5b0f37abd5
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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();
}