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
Plasma
Discover
Commits
e36f4d08
Commit
e36f4d08
authored
Nov 24, 2021
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Nov 24, 2021
Browse files
flatpak: Do not call flatpak function with a nullptr
BUG: 445819 (cherry picked from commit
98aced4c
)
parent
1e289501
Changes
2
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakJobTransaction.cpp
View file @
e36f4d08
...
...
@@ -61,7 +61,7 @@ void FlatpakJobTransaction::finishTransaction()
m_app
->
setState
(
AbstractResource
::
None
);
}
if
(
!
m_appJob
->
errorMessage
().
isEmpty
())
{
if
(
!
m_appJob
->
cancelled
()
&&
!
m_appJob
->
errorMessage
().
isEmpty
())
{
Q_EMIT
passiveMessage
(
m_appJob
->
errorMessage
());
}
...
...
libdiscover/backends/FlatpakBackend/FlatpakResource.cpp
View file @
e36f4d08
...
...
@@ -608,7 +608,9 @@ QString FlatpakResource::versionString()
}
if
(
isInstalled
())
{
auto
ref
=
qobject_cast
<
FlatpakBackend
*>
(
backend
())
->
getInstalledRefForApp
(
this
);
version
=
flatpak_installed_ref_get_appdata_version
(
ref
);
if
(
ref
)
{
version
=
flatpak_installed_ref_get_appdata_version
(
ref
);
}
}
else
if
(
!
m_appdata
.
releases
().
isEmpty
())
{
auto
release
=
m_appdata
.
releases
().
constFirst
();
version
=
release
.
version
();
...
...
Write
Preview
Markdown
is supported
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