projects
/
scorecard
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't set twice the central widget
[scorecard]
/
src
/
main-window.cpp
diff --git
a/src/main-window.cpp
b/src/main-window.cpp
index
5b4b546
..
c575116
100644
(file)
--- a/
src/main-window.cpp
+++ b/
src/main-window.cpp
@@
-103,7
+103,7
@@
void MainWindow::createLayout(QWidget *parent)
QHBoxLayout *mainLayout = new QHBoxLayout(parent);
mainLayout->addLayout(tableLayout);
mainLayout->addLayout(buttonLayout);
- setLayout(mainLayout);
+ parent->setLayout(mainLayout);
}
// Setup 'score' tab view