From 2cb07a7bee00c0bccd4c9e2a721790c6cfb5c349 Mon Sep 17 00:00:00 2001 From: Lukas Kettner Date: Mon, 5 Oct 2026 21:50:37 +0200 Subject: [PATCH 1/2] fix: crash for QE instance without service running --- .../Event/src/services/qx/qxlateregistrationswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp b/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp index 39c269910..79b90f84c 100644 --- a/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp +++ b/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp @@ -257,6 +257,9 @@ void QxLateRegistrationsWidget::addQxChangeRow(int sql_id) loadTypes(getPlugin()->currentStageId()); auto qb = m_model->queryBuilder(); + if (qb.isEmpty()) { + return; + } qb.where(QStringLiteral("id=%1").arg(sql_id)); qfs::Query q; q.execThrow(qb.toString()); From a76cc35bb90d0f4ab329375ba5af6c0dd41b18cd Mon Sep 17 00:00:00 2001 From: Lukas Kettner Date: Mon, 5 Oct 2026 21:58:34 +0200 Subject: [PATCH 2/2] feat: show late registrations table even for qe instance without service running --- .../src/services/qx/qxlateregistrationswidget.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp b/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp index 79b90f84c..f41dfd7a2 100644 --- a/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp +++ b/quickevent/app/quickevent/plugins/Event/src/services/qx/qxlateregistrationswidget.cpp @@ -79,7 +79,6 @@ QxLateRegistrationsWidget::QxLateRegistrationsWidget(QWidget *parent) : ui->tableView->setTableModel(m_model); showMessage({}); - setEnabled(false); connect(service(), &Service::statusChanged, this, &QxLateRegistrationsWidget::updateEnabled); if (auto *svc = Service::serviceByName(OFeedClient::serviceName())) { @@ -130,7 +129,7 @@ void QxLateRegistrationsWidget::onDbEventNotify(const QString &domain, int conne void QxLateRegistrationsWidget::onVisibleChanged(bool is_visible) { - if (is_visible && isEnabled()) { + if (is_visible) { reload(); } } @@ -146,12 +145,7 @@ void QxLateRegistrationsWidget::updateEnabled() { auto *ofeed = qobject_cast(Service::serviceByName(OFeedClient::serviceName())); bool is_ofeed_running = ofeed && ofeed->isRunning(); - bool is_qx_running = service()->isRunning() ; - bool is_enabled = is_qx_running || is_ofeed_running; - setEnabled(is_enabled); - if (is_enabled) { - reload(); - } + reload(); // the changes are stored into this table only when the processing is switched on, // the dock is revealed then, so that the records are not hidden from the user if (is_ofeed_running && (ofeed->runStartChangesProcessing() || ofeed->runOfficeChangesProcessing())) { @@ -204,9 +198,6 @@ void QxLateRegistrationsWidget::showMessage(const QString &msg, bool is_error) void QxLateRegistrationsWidget::reload() { - if(!isEnabled()) { - return; - } auto event_plugin = getPlugin(); if(!getPlugin()->isEventOpen()) { return;