Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
048b5a36
Commit
048b5a36
authored
Jan 29, 2021
by
Christoph Cullmann
🐮
Browse files
ensure correct connection type for threaded execution
parent
4912c2dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateproject.cpp
View file @
048b5a36
...
...
@@ -170,9 +170,10 @@ bool KateProject::load(const QVariantMap &globalProject, bool force)
}
// let's run the stuff in our own thread pool
// do manual queued connect, as only run() is done in extra thread, object stays in this one
auto
w
=
new
KateProjectWorker
(
m_baseDir
,
indexDir
,
m_projectMap
,
force
);
connect
(
w
,
&
KateProjectWorker
::
loadDone
,
this
,
&
KateProject
::
loadProjectDone
);
connect
(
w
,
&
KateProjectWorker
::
loadIndexDone
,
this
,
&
KateProject
::
loadIndexDone
);
connect
(
w
,
&
KateProjectWorker
::
loadDone
,
this
,
&
KateProject
::
loadProjectDone
,
Qt
::
QueuedConnection
);
connect
(
w
,
&
KateProjectWorker
::
loadIndexDone
,
this
,
&
KateProject
::
loadIndexDone
,
Qt
::
QueuedConnection
);
m_threadPool
.
start
(
w
);
// we are done here
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment