Skip to content

Commit

Permalink
Allow packages with no description
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Sep 6, 2024
1 parent b5463e8 commit 4238b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ QMap<QString, PackageInfo> MainWindow::listInstalled() const
for (const QString &line : lines) {
if (line.startsWith(statusPrefix)) {
QStringList parts = line.mid(statusPrefix.length()).split(' ', Qt::SkipEmptyParts);
if (parts.size() >= 3) {
if (parts.size() >= 2) {
QString packageName = parts.takeFirst();
QString version = parts.takeFirst();
QString description = parts.join(' ');
Expand Down

0 comments on commit 4238b7f

Please sign in to comment.