mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Slightly more sensible layout handling.
This commit is contained in:
parent
f52903a94d
commit
6426f3c86c
1 changed files with 0 additions and 6 deletions
|
|
@ -70,12 +70,6 @@ void ManaCurveWidget::updateDisplay()
|
|||
}
|
||||
}
|
||||
|
||||
// Ensure layout exists
|
||||
if (barLayout == nullptr) {
|
||||
barLayout = new QHBoxLayout(this);
|
||||
layout->addLayout(barLayout);
|
||||
}
|
||||
|
||||
int totalSum = 0;
|
||||
for (const auto &entry : manaCurveMap) {
|
||||
totalSum += entry.second;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue