mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Fix another null deref in the dashboard
This commit is contained in:
parent
b82e932ad7
commit
013375c64c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user