Removed redundant signal handling from RegisterHistoryItem

This commit is contained in:
Nav
2021-12-19 01:44:49 +00:00
parent 5cd19c3ff9
commit cb5afddd0f

View File

@@ -38,13 +38,4 @@ RegisterHistoryItem::RegisterHistoryItem(
this->layout->addWidget(this->dateLabel, 0, Qt::AlignmentFlag::AlignTop);
this->layout->addLayout(subLabelLayout);
this->layout->addStretch(1);
auto onClick = [this] {
this->setSelected(true);
};
QObject::connect(this, &ClickableWidget::clicked, this, onClick);
QObject::connect(this, &ClickableWidget::rightClicked, this, onClick);
this->setSelected(false);
}