[Pkg-owncloud-commits] [owncloud-client] 365/484: Activity Widget: Fix runtime warning

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4984da7e0d79d228b31a0977af053200d6f9e9d1
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed Nov 18 15:29:16 2015 +0100

    Activity Widget: Fix runtime warning
    
    Fix the warning:
     QLayout: Attempting to add QLayout "" to OCC::ActivitySettings "", which already has a layout
    
    It was caused because one layout was created with the wrong parent
---
 src/gui/activitywidget.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 91af0aa..8eb93f0 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -364,7 +364,7 @@ ActivitySettings::ActivitySettings(QWidget *parent)
 
     // Add the not-synced list into the tab
     QWidget *w = new QWidget;
-    QVBoxLayout *vbox2 = new QVBoxLayout(this);
+    QVBoxLayout *vbox2 = new QVBoxLayout(w);
     vbox2->addWidget(new QLabel(tr("List of ignored or errornous files"), this));
     vbox2->addWidget(_protocolWidget->issueWidget());
     QDialogButtonBox *dlgButtonBox = new QDialogButtonBox(this);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list