mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
filelight: fix possible crashes when attempting to navigate the radial map
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bdf203fff9
commit
7f22a2beb4
1 changed files with 11 additions and 2 deletions
|
@ -62,13 +62,22 @@ RadialMap::Widget::~Widget()
|
|||
QString
|
||||
RadialMap::Widget::path() const
|
||||
{
|
||||
return m_tree->fullPath();
|
||||
if (m_tree) {
|
||||
return m_tree->fullPath();
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
||||
KUrl
|
||||
RadialMap::Widget::url(File const * const file) const
|
||||
{
|
||||
return KUrl(file ? file->fullPath() : m_tree->fullPath());
|
||||
if (file) {
|
||||
return file->fullPath();
|
||||
}
|
||||
if (m_tree) {
|
||||
return m_tree->fullPath();
|
||||
}
|
||||
return KUrl();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue