From d416dca5e05e90a7054c800258b6f97b18a50bcf Mon Sep 17 00:00:00 2001 From: Ben Chamberland Date: Tue, 30 Jul 2024 09:52:57 -0400 Subject: [PATCH] Normalizing clipboard access accross platforms Signed-off-by: Ben Chamberland --- src/lib/app/RvCommon/RvApplication.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/lib/app/RvCommon/RvApplication.cpp b/src/lib/app/RvCommon/RvApplication.cpp index b8b62e835..44f48d59a 100644 --- a/src/lib/app/RvCommon/RvApplication.cpp +++ b/src/lib/app/RvCommon/RvApplication.cpp @@ -1454,18 +1454,7 @@ RvApplication::pasteTextFromClipboard() { QString text; QClipboard *clipboard = QApplication::clipboard(); - - #if defined(PLATFORM_DARWIN) - text = clipboard->text(QClipboard::Clipboard); - #elif defined(PLATFORM_WINDOWS) - text = clipboard->text(QClipboard::Clipboard); - #else - text = clipboard->text(QClipboard::Selection); - if (text.isEmpty()) { - text = clipboard->text(QClipboard::Clipboard); - } - #endif - + text = clipboard->text(QClipboard::Clipboard); return text.toUtf8().constData(); }