[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/actions
From: Christoph Feck <christoph () maxiom ! de>
Date: 2009-05-06 1:41:17
Message-ID: 1241574077.682341.28082.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 964121 by cfeck:
Disable empty "open recent" menu
I kept the hide/show "No Entries" action logic for styles/platforms that
expand disabled sub menus.
BUG: 185312
M +4 -0 krecentfilesaction.cpp
--- trunk/KDE/kdelibs/kdeui/actions/krecentfilesaction.cpp #964120:964121
@@ -83,6 +83,7 @@
clearSeparator->setVisible(false);
clearAction = q->menu()->addAction(i18n("Clear List"), q, SLOT(clear()));
clearAction->setVisible(false);
+ q->setEnabled(false);
q->connect(q, SIGNAL(triggered(QAction*)), SLOT(_k_urlSelected(QAction*)));
}
@@ -151,6 +152,7 @@
d->m_noEntriesAction->setVisible(false);
d->clearSeparator->setVisible(true);
d->clearAction->setVisible(true);
+ setEnabled(true);
// add file to list
const QString title = tmpName + " [" + file + ']';
QAction* action = new QAction(title, selectableActionGroup());
@@ -219,6 +221,7 @@
d->m_noEntriesAction->setVisible(true);
d->clearSeparator->setVisible(false);
d->clearAction->setVisible(false);
+ setEnabled(false);
}
void KRecentFilesAction::loadEntries( const KConfigGroup& _config)
@@ -274,6 +277,7 @@
d->m_noEntriesAction->setVisible(false);
d->clearSeparator->setVisible(true);
d->clearAction->setVisible(true);
+ setEnabled(true);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic