[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdeaddons/konq-plugins/kuick
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2004-11-27 19:08:33
Message-ID: 20041127190833.8839E1BA33 () office ! kde ! org
[Download RAW message or body]
CVS commit by pletourn:
Escape '&'
BUG: 94002
M +2 -1 kdirmenu.cpp 1.21.2.2
M +2 -1 kmetamenu.cpp 1.24.2.1
--- kdeaddons/konq-plugins/kuick/kdirmenu.cpp #1.21.2.1:1.21.2.2
@@ -59,5 +59,6 @@ KDirMenu::~KDirMenu( ) {
void KDirMenu::insert( KDirMenu *submenu, const QString &_path ) {
static const QIconSet folder = SmallIconSet("folder");
- insertItem ( folder , _path, submenu );
+ QString escapedPath = _path;
+ insertItem( folder, escapedPath.replace( "&", "&&" ), submenu );
children.append( submenu );
connect(submenu, SIGNAL(fileChosen(const QString &)),
--- kdeaddons/konq-plugins/kuick/kmetamenu.cpp #1.24:1.24.2.1
@@ -118,5 +118,6 @@ KMetaMenu::KMetaMenu( QWidget *parent, c
continue;
}
- KAction *action = new KAction(*it, 0, this, SLOT(slotFastPath() ), this );
+ QString escapedDir = *it;
+ KAction *action = new KAction(escapedDir.replace("&", "&&"), 0, this, \
SLOT(slotFastPath()), this); action->plug(this );
actions.append( action );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic