Skip to content

Commit

Permalink
Wayland: Update code from kguiaddons (commit 333ba24)
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Nov 11, 2024
1 parent fb7c5ec commit 005dc01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/x11/systemclipboard/waylandclipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ class DataControlOffer : public QMimeData, public QtWayland::zwlr_data_control_o
protected:
void zwlr_data_control_offer_v1_offer(const QString &mime_type) override
{
m_receivedFormats << mime_type;
if (!m_receivedFormats.contains(mime_type)) {
m_receivedFormats << mime_type;
}
}

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
Expand Down

0 comments on commit 005dc01

Please sign in to comment.