X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/ce11325115b8655fd687c78fdf0b1c358806195e..d2f044b32d34023fbf4755b95dcafe71ed00b55f:/src/views/dolphinview.cpp diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index ef346b3e4..71c16bf46 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -140,9 +140,8 @@ DolphinView::DolphinView(const QUrl& url, QWidget* parent) : m_placeholderLabel->setGraphicsEffect(effect); // Set initial text and visibility updatePlaceholderLabel(); - // Add a new layout to hold it and put it in the layout - auto *centeringLayout = new QVBoxLayout(this); - m_container->setLayout(centeringLayout); + + auto *centeringLayout = new QVBoxLayout(m_container); centeringLayout->addWidget(m_placeholderLabel); centeringLayout->setAlignment(m_placeholderLabel, Qt::AlignCenter);