Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
c3a286b1
Commit
c3a286b1
authored
Jan 13, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
--warning
Fix annoying warning when connecting to a nullptr emitter
parent
40dc6006
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/resources/ResourcesModel.cpp
View file @
c3a286b1
...
...
@@ -134,8 +134,10 @@ void ResourcesModel::addResourcesBackend(AbstractResourcesBackend* backend)
connect
(
backend
,
&
AbstractResourcesBackend
::
fetchingUpdatesProgressChanged
,
this
,
[
this
]
{
m_fetchingUpdatesProgress
.
reevaluate
();
});
connect
(
backend
,
&
AbstractResourcesBackend
::
resourceRemoved
,
this
,
&
ResourcesModel
::
resourceRemoved
);
connect
(
backend
,
&
AbstractResourcesBackend
::
passiveMessage
,
this
,
&
ResourcesModel
::
passiveMessage
);
connect
(
backend
->
reviewsBackend
(),
&
AbstractReviewsBackend
::
error
,
this
,
&
ResourcesModel
::
passiveMessage
,
Qt
::
UniqueConnection
);
connect
(
backend
->
backendUpdater
(),
&
AbstractBackendUpdater
::
progressingChanged
,
this
,
&
ResourcesModel
::
slotFetching
);
if
(
backend
->
reviewsBackend
())
{
connect
(
backend
->
reviewsBackend
(),
&
AbstractReviewsBackend
::
error
,
this
,
&
ResourcesModel
::
passiveMessage
,
Qt
::
UniqueConnection
);
}
// In case this is in fact the first backend to be added, and also happens to be
// pre-filled, we still need for the rest of the backends to be added before trying
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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