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
This commit is contained in:
Olivier Goffart 2015-11-18 15:29:16 +01:00
parent f2d8143511
commit 4984da7e0d

View file

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