Skip to content

Commit

Permalink
Windows: Fix warning about setting unsupported clipboard type
Browse files Browse the repository at this point in the history
Fixes following Qt warning.

    QtWarning: Data set on unsupported clipboard mode. QMimeData object will be deleted. (:0, )

Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed May 11, 2019
1 parent 6a9bf5f commit 28b3581
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/mainwindow.cpp
Expand Up @@ -2701,7 +2701,9 @@ void MainWindow::previousTab()
void MainWindow::setClipboard(const QVariantMap &data)
{
setClipboard(data, ClipboardMode::Clipboard);
#ifdef HAS_MOUSE_SELECTIONS
setClipboard(data, ClipboardMode::Selection);
#endif
}

void MainWindow::setClipboard(const QVariantMap &data, ClipboardMode mode)
Expand Down

0 comments on commit 28b3581

Please sign in to comment.