Skip to content

Commit

Permalink
Fix streamed session resets not starting in Qt5
Browse files Browse the repository at this point in the history
By registering net::Message with the Qt meta type system, since
otherwise it doesn't want to set up a queued signal with a message list.
  • Loading branch information
askmeaboutlo0m committed Aug 31, 2024
1 parent 27d592b commit b623143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libclient/document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,8 @@ net::MessageList Document::generateStreamSnapshot(
}

void Document::startSendingStreamResetSnapshot(
const net::MessageList &image, int messageCount, const QString &correlator)
const QVector<net::Message> &image, int messageCount,
const QString &correlator)
{
if(m_streamResetState == StreamResetState::Generating &&
m_autoResetCorrelator == correlator) {
Expand Down
3 changes: 3 additions & 0 deletions src/libshared/net/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
extern "C" {
#include <dpmsg/message.h>
}
#include <QMetaType>
#include <QVector>

class QByteArray;
Expand Down Expand Up @@ -131,4 +132,6 @@ makeTrustedUsersMessage(uint8_t contextId, const QVector<uint8_t> &users);

}

Q_DECLARE_METATYPE(net::Message)

#endif

0 comments on commit b623143

Please sign in to comment.