mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Avoid use of possibly uninitialized value in CategoryListWidgetDelegate
This commit is contained in:
parent
b0a61f437a
commit
8cd4d839aa
@ -152,8 +152,9 @@ void CategoryListWidget::emitCategoryChanged(int index)
|
||||
CategoryListWidgetDelegate::CategoryListWidgetDelegate(QListWidget* parent)
|
||||
: QStyledItemDelegate(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()) {
|
||||
m_size.setWidth(m_listWidget->width());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user