mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-12 01:42:06 +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");
|
QString libs = this->main->core->cmd("il");
|
||||||
QStringList lines = libs.split("\n", QString::SkipEmptyParts);
|
QStringList lines = libs.split("\n", QString::SkipEmptyParts);
|
||||||
|
if (lines) {
|
||||||
lines.removeFirst();
|
lines.removeFirst();
|
||||||
lines.removeLast();
|
lines.removeLast();
|
||||||
|
}
|
||||||
foreach (QString lib, lines) {
|
foreach (QString lib, lines) {
|
||||||
QLabel *label = new QLabel(this);
|
QLabel *label = new QLabel(this);
|
||||||
label->setText(lib);
|
label->setText(lib);
|
||||||
|
Loading…
Reference in New Issue
Block a user