From 85beb06912698af92b5d9e9a489a72773164451d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 28 Mar 2017 10:10:41 +0200 Subject: Only send notifications about being connected if we did something against the source. We used to replay no changes and then claim the resource was online. --- common/commandprocessor.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'common/commandprocessor.cpp') diff --git a/common/commandprocessor.cpp b/common/commandprocessor.cpp index 2d9e93c..3507ef1 100644 --- a/common/commandprocessor.cpp +++ b/common/commandprocessor.cpp @@ -295,24 +295,6 @@ void CommandProcessor::setSynchronizer(const QSharedPointer &synch mSynchronizer->setup([this](int commandId, const QByteArray &data) { enqueueCommand(mSynchronizerQueue, commandId, data); }, mSynchronizerQueue); - - QObject::connect(mSynchronizer.data(), &Synchronizer::replayingChanges, [this]() { - Sink::Notification n; - n.id = "changereplay"; - n.type = Notification::Status; - n.message = "Replaying changes."; - n.code = ApplicationDomain::BusyStatus; - emit notify(n); - }); - QObject::connect(mSynchronizer.data(), &Synchronizer::changesReplayed, [this]() { - Sink::Notification n; - n.id = "changereplay"; - n.type = Notification::Status; - n.message = "All changes have been replayed."; - n.code = ApplicationDomain::ConnectedStatus; - emit notify(n); - }); - QObject::connect(mSynchronizer.data(), &Synchronizer::notify, this, &CommandProcessor::notify); setOldestUsedRevision(mSynchronizer->getLastReplayedRevision()); } -- cgit v1.2.3