summaryrefslogtreecommitdiffstats
path: root/kde/patch/krunner/krunner_KDEBUG_423003.patch
blob: 88f629721fcafc952d452590783eabe6a90bff9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From 8f7ce559b84ee0c21de0256e6591793e4b95f411 Mon Sep 17 00:00:00 2001
From: David Redondo <kde@david-redondo.de>
Date: Tue, 14 Jul 2020 13:02:51 +0200
Subject: [PATCH] Do not remove virtual method from build

Method was deprecated in fc5738ab7c4025a87e2bbd656914b6187df7a9eb. Removing the
method when building without deprecated methods (for example the pim runner
does this) changes the vtable leading to crashes.
BUG: 423003
---
 src/abstractrunner.cpp | 2 --
 src/abstractrunner.h   | 2 --
 2 files changed, 4 deletions(-)

diff --git a/src/abstractrunner.cpp b/src/abstractrunner.cpp
index 378c73d..34c44d1 100644
--- a/src/abstractrunner.cpp
+++ b/src/abstractrunner.cpp
@@ -244,12 +244,10 @@ void AbstractRunner::setHasRunOptions(bool hasRunOptions)
 }
 #endif
 
-#if KRUNNER_BUILD_DEPRECATED_SINCE(5, 71)
 void AbstractRunner::createRunOptions(QWidget *parent)
 {
     Q_UNUSED(parent)
 }
-#endif
 
 AbstractRunner::Speed AbstractRunner::speed() const
 {
diff --git a/src/abstractrunner.h b/src/abstractrunner.h
index cb4e32a..ae9558d 100644
--- a/src/abstractrunner.h
+++ b/src/abstractrunner.h
@@ -161,7 +161,6 @@ class KRUNNER_EXPORT AbstractRunner : public QObject
         bool hasRunOptions();
 #endif
 
-#if KRUNNER_ENABLE_DEPRECATED_SINCE(5, 71)
         /**
          * If hasRunOptions() returns true, this method may be called to get
          * a widget displaying the options the user can interact with to modify
@@ -172,7 +171,6 @@ class KRUNNER_EXPORT AbstractRunner : public QObject
          */
         KRUNNER_DEPRECATED_VERSION_BELATED(5, 71,  5, 0, "No longer use, feature removed")
         virtual void createRunOptions(QWidget *widget);
-#endif
 
         /**
          * Called whenever an exact or possible match associated with this
-- 
GitLab