summaryrefslogtreecommitdiff
path: root/src/urlbar/favoritewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/favoritewidget.cpp')
-rw-r--r--src/urlbar/favoritewidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/urlbar/favoritewidget.cpp b/src/urlbar/favoritewidget.cpp
index c3370db9..da94410d 100644
--- a/src/urlbar/favoritewidget.cpp
+++ b/src/urlbar/favoritewidget.cpp
@@ -56,7 +56,7 @@ FavoriteWidget::FavoriteWidget(WebTab *tab, QWidget *parent)
setFixedWidth(350);
QFormLayout *layout = new QFormLayout(this);
- QVBoxLayout *vLay = new QVBoxLayout(this);
+ QVBoxLayout *vLay = new QVBoxLayout;
// Favorite icon
QLabel *bookmarkIcon = new QLabel(this);
@@ -84,8 +84,6 @@ FavoriteWidget::FavoriteWidget(WebTab *tab, QWidget *parent)
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(close()));
layout->addWidget(buttonBox);
-
- setLayout(layout);
}