From a18e0b6a2cbea94229598c9e777ceea1aa46fff7 Mon Sep 17 00:00:00 2001 From: Yuri Date: Thu, 2 Feb 2017 13:09:44 -0800 Subject: [PATCH] fix(clipboard): Made clipboard operations work the same on all OSes. Qt should handle all OS differences, not individual apps. --- src/chatlog/chatlog.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 6cb74a2be..fc0f62fef 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -82,14 +82,12 @@ ChatLog::ChatLog(QWidget* parent) }); addAction(copyAction); -#ifdef Q_OS_LINUX // Ctrl+Insert shortcut QShortcut* copyCtrlInsShortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Insert), this); connect(copyCtrlInsShortcut, &QShortcut::activated, this, [this]() { copySelectedText(); }); -#endif // select all action (ie. Ctrl+A) selectAllAction = new QAction(this); @@ -119,9 +117,7 @@ ChatLog::ChatLog(QWidget* parent) // selection connect(this, &ChatLog::selectionChanged, this, [this]() { copyAction->setEnabled(hasTextToBeCopied()); -#ifdef Q_OS_LINUX copySelectedText(true); -#endif }); retranslateUi();