Index: mythgallery/mythgallery/iconview.cpp
===================================================================
--- mythgallery/mythgallery/iconview.cpp	(revision 18562)
+++ mythgallery/mythgallery/iconview.cpp	(working copy)
@@ -593,6 +593,9 @@
 {
     bool handled = false;
 
+    if(m_currDir.isNull() || m_currDir.isEmpty())
+	return handled;
+
     QDir curdir(m_currDir);
     QDir pdir(parent);
     if ((curdir != pdir) && is_subdir(pdir, curdir))
