From: Peter Penz Date: Fri, 12 Dec 2008 18:20:01 +0000 (+0000) Subject: don't disable the "Create New" menu entry, when switching between columns of the... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/03407356cac7e07147b22077c5e6218bb8d53063 don't disable the "Create New" menu entry, when switching between columns of the column view BUG: 173153 svn path=/trunk/KDE/kdebase/apps/; revision=896156 --- diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 2ef6209bc..c75553c4b 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -176,11 +176,12 @@ DolphinViewContainer::~DolphinViewContainer() void DolphinViewContainer::setUrl(const KUrl& newUrl) { m_urlNavigator->setUrl(newUrl); - - // Temporary disable the 'File'->'Create New...' menu until - // the write permissions can be checked in a fast way at - // DolphinViewContainer::slotDirListerCompleted(). - m_mainWindow->newMenu()->menu()->setEnabled(false); + if (newUrl != m_urlNavigator->url()) { + // Temporary disable the 'File'->'Create New...' menu until + // the write permissions can be checked in a fast way at + // DolphinViewContainer::slotDirListerCompleted(). + m_mainWindow->newMenu()->menu()->setEnabled(false); + } } const KUrl& DolphinViewContainer::url() const