diff options
| author | Ahmad Samir <[email protected]> | 2020-12-03 20:06:11 +0200 |
|---|---|---|
| committer | Ahmad Samir <[email protected]> | 2020-12-03 19:50:04 +0000 |
| commit | 1d64b9bb10e90a0c6a1053a3a41614caf0e0f8e4 (patch) | |
| tree | 604d650c815330b50d1193c65f82a6777ad7c3ed /src/settings/general | |
| parent | 134464177513cba0bb5e2f64875688f70e9a622b (diff) | |
DolphinView: set the parent of layout in the ctor
This silences a runtime warning:
QLayout: Attempting to add QLayout "" to DolphinView "", which already
has a layout
Remove redudant setLayout() calls, passing a parent widget to the
Q*BoxLayout ctor sets that layout as the top-level layout for that widget.
Diffstat (limited to 'src/settings/general')
| -rw-r--r-- | src/settings/general/configurepreviewplugindialog.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/settings/general/configurepreviewplugindialog.cpp b/src/settings/general/configurepreviewplugindialog.cpp index d29b63b7d..4d7ee589a 100644 --- a/src/settings/general/configurepreviewplugindialog.cpp +++ b/src/settings/general/configurepreviewplugindialog.cpp @@ -38,7 +38,6 @@ ConfigurePreviewPluginDialog::ConfigurePreviewPluginDialog(const QString& plugin setMinimumWidth(400); auto layout = new QVBoxLayout(this); - setLayout(layout); if (previewPlugin) { auto configurationWidget = previewPlugin->createConfigurationWidget(); |
