Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Jul 20, 2024
1 parent 02205d0 commit d804654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1859,8 +1859,8 @@ QString MainWindow::getVersion(const QString &name) const
// Return true if all the packages listed are installed
bool MainWindow::checkInstalled(const QVariant &names) const
{
QStringList name_list = names.canConvert<QString>() ? names.toString().split('\n', Qt::SkipEmptyParts)
: names.toStringList();
QStringList name_list
= names.canConvert<QString>() ? names.toString().split('\n', Qt::SkipEmptyParts) : names.toStringList();

return !name_list.isEmpty() && std::all_of(name_list.cbegin(), name_list.cend(), [this](const QString &name) {
return installed_packages.contains(name.trimmed());
Expand Down

0 comments on commit d804654

Please sign in to comment.