From: Peter Penz Date: Sat, 7 Jun 2008 09:49:24 +0000 (+0000) Subject: fix crash when e. g. right clicking on a file using SMB inside Konqueror X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3b8f32042f4191eb6fe91ad3572dbcf5e2d34f2f fix crash when e. g. right clicking on a file using SMB inside Konqueror BUG: 163358 svn path=/trunk/KDE/kdebase/apps/; revision=817974 --- diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 58e68a39f..dd0f33121 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -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;