From 0396fdb01d12e51bd2cc63478819b366c0453d29 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Mar 2021 20:26:21 +0100 Subject: Moves all globals into a structure that can be deleted before the app exists. Fixes #193. --- src/widgets/kristalltextbrowser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/widgets/kristalltextbrowser.cpp') diff --git a/src/widgets/kristalltextbrowser.cpp b/src/widgets/kristalltextbrowser.cpp index 67e7976..5f34c10 100644 --- a/src/widgets/kristalltextbrowser.cpp +++ b/src/widgets/kristalltextbrowser.cpp @@ -7,6 +7,7 @@ #include #include #include +#include const Qt::CursorShape KristallTextBrowser::NORMAL_CURSOR = Qt::IBeamCursor; @@ -133,7 +134,7 @@ void KristallTextBrowser::betterCopy() if (text.contains(REGEX_ONLY_QUOTES)) { // Copy the original text. - kristall::clipboard->setText(text); + qApp->clipboard()->setText(text); return; } @@ -151,5 +152,5 @@ void KristallTextBrowser::betterCopy() text.replace(QChar(0x2029), "\n"); #endif - kristall::clipboard->setText(text); + qApp->clipboard()->setText(text); } -- cgit v1.2.3