diff options
| author | Peter Penz <[email protected]> | 2008-11-14 20:49:58 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-11-14 20:49:58 +0000 |
| commit | 2554385bbc0e2602d9d82f87974f5072c8db0b44 (patch) | |
| tree | 1ae342059556b4af6d1f65a50d883fc8510dd5ec /src | |
| parent | 1743e4b1fab8375eead3316770d88381e72b183c (diff) | |
disable the 'Create New' entry in the context menu, if the directory does not support writing
svn path=/trunk/KDE/kdebase/apps/; revision=884396
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 777d96a04..107c2b24a 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -178,6 +178,7 @@ void DolphinContextMenu::openItemContextMenu() DolphinNewMenu* newMenu = new DolphinNewMenu(popup, m_mainWindow); newMenu->slotCheckUpToDate(); newMenu->setPopupFiles(m_fileInfo.url()); + newMenu->setEnabled(capabilities().supportsWriting()); KMenu* menu = newMenu->menu(); menu->setTitle(i18nc("@title:menu Create new folder, file, link, etc.", "Create New")); |
