mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-19 09:47:20 +01:00
Fixes #2387.
Check for null object in debug message so it doesn't cause crash.
This commit is contained in:
parent
71f5faab3d
commit
4880424bf3
@ -211,7 +211,8 @@ bool ProjectPanel::fileNew()
|
|||||||
|
|
||||||
if (fwbdebug)
|
if (fwbdebug)
|
||||||
qDebug("ProjectPanel::fileNew() rcs=%p rcs->getFileName()='%s'",
|
qDebug("ProjectPanel::fileNew() rcs=%p rcs->getFileName()='%s'",
|
||||||
rcs, rcs->getFileName().toAscii().constData());
|
rcs, rcs == 0 ? "<null>" :
|
||||||
|
rcs->getFileName().toAscii().constData());
|
||||||
|
|
||||||
return (rcs!=NULL);
|
return (rcs!=NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user