Fixed SEGV caused by dereferencing null pointer. This resolves issue #3.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 1 year ago
parent 0fd96573f7
commit 90809a0fbd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -42,7 +42,15 @@ RadialMap::Widget::path() const
KURL
RadialMap::Widget::url( File const * const file ) const
{
return KURL::fromPathOrURL( file ? file->fullPath() : m_tree->fullPath() );
if (file)
{
return KURL::fromPathOrURL(file->fullPath());
}
if (m_tree)
{
return KURL::fromPathOrURL(m_tree->fullPath());
}
return KURL::fromPathOrURL(TQString::null);
}
void

Loading…
Cancel
Save