]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fix crash when e. g. right clicking on a file using SMB inside Konqueror
authorPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jun 2008 09:49:24 +0000 (09:49 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jun 2008 09:49:24 +0000 (09:49 +0000)
BUG: 163358

svn path=/trunk/KDE/kdebase/apps/; revision=817974

src/dolphinpart.cpp

index 58e68a39f1edac627e19ccdebed650c37e2db6c9..dd0f331219ec0f8204df3d759f54a8aba5ffdcd7 100644 (file)
@@ -351,7 +351,7 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item, const KUrl&)
         // If the parent directory of the selected item is writable, moving
         // and deleting are possible.
         KFileItem parentDir = m_dirLister->rootItem();
-        if (!parentDir.isWritable()) {
+        if (!parentDir.isNull() && !parentDir.isWritable()) {
             popupFlags |= KParts::BrowserExtension::NoDeletion;
             sDeleting = false;
             sMoving = false;