diff options
Diffstat (limited to 'src/plugins/perfprofiler/perfprofilerstatisticsview.cpp')
-rw-r--r-- | src/plugins/perfprofiler/perfprofilerstatisticsview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerstatisticsview.cpp b/src/plugins/perfprofiler/perfprofilerstatisticsview.cpp index d023444b2e..78e9b57e7e 100644 --- a/src/plugins/perfprofiler/perfprofilerstatisticsview.cpp +++ b/src/plugins/perfprofiler/perfprofilerstatisticsview.cpp @@ -204,7 +204,8 @@ QString StatisticsView::rowToString(int row) const static void sendToClipboard(const QString &str) { QClipboard *clipboard = QApplication::clipboard(); - clipboard->setText(str, QClipboard::Selection); + if (clipboard->supportsSelection()) + clipboard->setText(str, QClipboard::Selection); clipboard->setText(str, QClipboard::Clipboard); } |