diff --git a/src/widgets/dashboard.cpp b/src/widgets/dashboard.cpp index 7c5bc2df..1391e8cb 100644 --- a/src/widgets/dashboard.cpp +++ b/src/widgets/dashboard.cpp @@ -113,8 +113,10 @@ void Dashboard::updateContents() { QString libs = this->main->core->cmd("il"); QStringList lines = libs.split("\n", QString::SkipEmptyParts); - lines.removeFirst(); - lines.removeLast(); + if (lines) { + lines.removeFirst(); + lines.removeLast(); + } foreach (QString lib, lines) { QLabel *label = new QLabel(this); label->setText(lib);