Skip to content

Commit

Permalink
BaseSelectorWidget: uses should_trigger_delete on QT 6
Browse files Browse the repository at this point in the history
  • Loading branch information
NightMachinery committed Jan 18, 2024
1 parent 160b7d5 commit 4df8989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf_viewer/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ bool BaseSelectorWidget::eventFilter(QObject* obj, QEvent* event) {
#ifdef SIOYEK_QT6
if (event->type() == QEvent::KeyRelease) {
QKeyEvent* key_event = static_cast<QKeyEvent*>(event);
if (key_event->key() == Qt::Key_Delete) {
if (should_trigger_delete(key_event)) {
handle_delete();
}
else if (key_event->key() == Qt::Key_Insert) {
Expand Down

0 comments on commit 4df8989

Please sign in to comment.