Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix_spreadsheet_crashes' into 'master'
Fix spreadsheet crashes See merge request mer-core/calligra!3
- Loading branch information
Showing
5 changed files
with
94 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From f51e21873aa52bc70a2f1ff09732b5c23b63e3cb Mon Sep 17 00:00:00 2001 | ||
From: Pekka Vuorela <pekka.vuorela@jolla.com> | ||
Date: Fri, 22 Mar 2019 10:55:44 +0200 | ||
Subject: [PATCH] Disable Q_COREAPP_STARTUP_FUNCTION | ||
|
||
This doesn't work with Calligra loaded as plugin and seems partly | ||
pointless event if it did. The QGuiApplication is already created | ||
long ago when this is executed and done it separate thread it | ||
warns on trying to parent QTranslator into object (qapp) in a | ||
different thread. | ||
--- | ||
src/main.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/main.cpp b/src/main.cpp | ||
index 6b46f41..3510f2d 100644 | ||
--- a/src/main.cpp | ||
+++ b/src/main.cpp | ||
@@ -50,4 +50,4 @@ static void load() | ||
} | ||
} | ||
|
||
-Q_COREAPP_STARTUP_FUNCTION(load) | ||
+//Q_COREAPP_STARTUP_FUNCTION(load) | ||
-- | ||
2.20.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
From bc0f163db4e91b7669976510d5964957ef70a540 Mon Sep 17 00:00:00 2001 | ||
From: Pekka Vuorela <pekka.vuorela@jolla.com> | ||
Date: Fri, 22 Mar 2019 15:31:46 +0200 | ||
Subject: [PATCH 2/2] Comment out Q_COREAPP_STARTUP_FUNCTIONs | ||
|
||
Warns on qobject parents when loaded as plugin from another thread. | ||
Shouldn't be needed. | ||
--- | ||
src/kactionconflictdetector.cpp | 3 ++- | ||
src/kcheckaccelerators.cpp | 3 ++- | ||
src/kswitchlanguagedialog_p.cpp | 3 ++- | ||
3 files changed, 6 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/src/kactionconflictdetector.cpp b/src/kactionconflictdetector.cpp | ||
index 6d4f75c..db4cd45 100644 | ||
--- a/src/kactionconflictdetector.cpp | ||
+++ b/src/kactionconflictdetector.cpp | ||
@@ -65,4 +65,5 @@ void _k_installConflictDetector() | ||
app->installEventFilter(new KActionConflictDetector(app)); | ||
} | ||
|
||
-Q_COREAPP_STARTUP_FUNCTION(_k_installConflictDetector) | ||
+// doesn't work when loaded as plugin | ||
+//Q_COREAPP_STARTUP_FUNCTION(_k_installConflictDetector) | ||
diff --git a/src/kcheckaccelerators.cpp b/src/kcheckaccelerators.cpp | ||
index 7c551f1..1c78a89 100644 | ||
--- a/src/kcheckaccelerators.cpp | ||
+++ b/src/kcheckaccelerators.cpp | ||
@@ -87,7 +87,8 @@ static void startupFunc() | ||
QMetaObject::invokeMethod(initializer, "initiateIfNeeded", Qt::QueuedConnection); | ||
} | ||
|
||
-Q_COREAPP_STARTUP_FUNCTION(startupFunc) | ||
+// doesn't work when loaded as plugin | ||
+//Q_COREAPP_STARTUP_FUNCTION(startupFunc) | ||
|
||
KCheckAccelerators::KCheckAccelerators(QObject *parent, int key_, bool autoCheck_, bool copyWidgetText_) | ||
: QObject(parent) | ||
diff --git a/src/kswitchlanguagedialog_p.cpp b/src/kswitchlanguagedialog_p.cpp | ||
index 12a1659..b7261e7 100644 | ||
--- a/src/kswitchlanguagedialog_p.cpp | ||
+++ b/src/kswitchlanguagedialog_p.cpp | ||
@@ -87,7 +87,8 @@ static void initializeLanguages() | ||
} | ||
} | ||
|
||
-Q_COREAPP_STARTUP_FUNCTION(initializeLanguages) | ||
+// doesn't work when loaded as plugin | ||
+//Q_COREAPP_STARTUP_FUNCTION(initializeLanguages) | ||
|
||
namespace KDEPrivate | ||
{ | ||
-- | ||
2.20.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters