summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/part/radialMap/widget.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/part/radialMap/widget.cpp b/src/part/radialMap/widget.cpp
index 0520f9e..79e2ed9 100644
--- a/src/part/radialMap/widget.cpp
+++ b/src/part/radialMap/widget.cpp
@@ -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