diff options
| author | Peter Penz <[email protected]> | 2008-06-07 09:49:24 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-07 09:49:24 +0000 |
| commit | 3b8f32042f4191eb6fe91ad3572dbcf5e2d34f2f (patch) | |
| tree | 3d4ac84735e6f5d02ae98e63c9dbb1293f8e5fdf /src | |
| parent | 3d28c535643ce8ad0c91b20adbdd1229031d3c82 (diff) | |
fix crash when e. g. right clicking on a file using SMB inside Konqueror
BUG: 163358
svn path=/trunk/KDE/kdebase/apps/; revision=817974
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinpart.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
