diff options
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 50845ac..ad8cae9 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -547,6 +547,7 @@ static Sink::Notification getNotification(const Sink::Commands::Notification *bu | |||
547 | } | 547 | } |
548 | n.type = buffer->type(); | 548 | n.type = buffer->type(); |
549 | n.code = buffer->code(); | 549 | n.code = buffer->code(); |
550 | n.entities = BufferUtils::fromVector(*buffer->entities()); | ||
550 | return n; | 551 | return n; |
551 | } | 552 | } |
552 | 553 | ||
@@ -601,20 +602,23 @@ bool ResourceAccess::processMessageBuffer() | |||
601 | queuedInvoke([=]() { emit notification(n); }, this); | 602 | queuedInvoke([=]() { emit notification(n); }, this); |
602 | } break; | 603 | } break; |
603 | case Sink::Notification::Status: | 604 | case Sink::Notification::Status: |
604 | if (mResourceStatus == buffer->code()) { | 605 | if (mResourceStatus != buffer->code()) { |
605 | SinkTrace() << "Got an unnecessary status notification"; | 606 | mResourceStatus = buffer->code(); |
606 | break; | 607 | SinkTrace() << "Updated status: " << mResourceStatus; |
607 | } | 608 | } |
608 | mResourceStatus = buffer->code(); | 609 | [[clang::fallthrough]]; |
609 | SinkTrace() << "Updated status: " << mResourceStatus; | 610 | case Sink::Notification::Info: |
610 | [[clang::fallthrough]]; | 611 | [[clang::fallthrough]]; |
611 | case Sink::Notification::Warning: | 612 | case Sink::Notification::Warning: |
612 | [[clang::fallthrough]]; | 613 | [[clang::fallthrough]]; |
614 | case Sink::Notification::Error: | ||
615 | [[clang::fallthrough]]; | ||
613 | case Sink::Notification::FlushCompletion: | 616 | case Sink::Notification::FlushCompletion: |
614 | [[clang::fallthrough]]; | 617 | [[clang::fallthrough]]; |
615 | case Sink::Notification::Progress: { | 618 | case Sink::Notification::Progress: { |
616 | auto n = getNotification(buffer); | 619 | auto n = getNotification(buffer); |
617 | SinkTrace() << "Received notification: " << n.type; | 620 | SinkTrace() << "Received notification: " << n; |
621 | n.resource = d->resourceInstanceIdentifier; | ||
618 | emit notification(n); | 622 | emit notification(n); |
619 | } break; | 623 | } break; |
620 | case Sink::Notification::RevisionUpdate: | 624 | case Sink::Notification::RevisionUpdate: |