diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp index 833320da16..4ec828ac83 100644 --- a/src/widgets/dialogs/qmessagebox.cpp +++ b/src/widgets/dialogs/qmessagebox.cpp @@ -133,10 +133,14 @@ public: bool copy() { +#ifdef QT_NO_CLIPBOARD + return false; +#else if (!copyAvailable) return false; textEdit->copy(); return true; +#endif } private slots: