mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 22:42:34 -04:00
Avoid use of possibly uninitialized value in CategoryListWidgetDelegate
This commit is contained in:
parent
b0a61f437a
commit
8cd4d839aa
1 changed files with 2 additions and 1 deletions
|
@ -152,8 +152,9 @@ void CategoryListWidget::emitCategoryChanged(int index)
|
||||||
CategoryListWidgetDelegate::CategoryListWidgetDelegate(QListWidget* parent)
|
CategoryListWidgetDelegate::CategoryListWidgetDelegate(QListWidget* parent)
|
||||||
: QStyledItemDelegate(parent),
|
: QStyledItemDelegate(parent),
|
||||||
m_listWidget(parent),
|
m_listWidget(parent),
|
||||||
m_size(minWidth(), 96)
|
m_size(96, 96)
|
||||||
{
|
{
|
||||||
|
m_size.setWidth(minWidth());
|
||||||
if (m_listWidget && m_listWidget->width() > m_size.width()) {
|
if (m_listWidget && m_listWidget->width() > m_size.width()) {
|
||||||
m_size.setWidth(m_listWidget->width());
|
m_size.setWidth(m_listWidget->width());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue