]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.cpp
1) Make sure that size qprogressbar is really updated after each change
[dolphin.git] / 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;