-rw-r--r-- | core/launcher/startmenu.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp index 2871233..28c8b97 100644 --- a/core/launcher/startmenu.cpp +++ b/core/launcher/startmenu.cpp | |||
@@ -223,7 +223,15 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu ) | |||
223 | if ( pmenu ) { | 223 | if ( pmenu ) { |
224 | QString t = app->name(); | 224 | QString t = app->name(); |
225 | t.replace(QRegExp("&"),"&&"); // escape shortcut character | 225 | t.replace(QRegExp("&"),"&&"); // escape shortcut character |
226 | pmenu->insertItem( app->pixmap(), t, app->id() ); | 226 | |
227 | int index = -1; | ||
228 | |||
229 | for ( index = 0; index < pmenu-> count ( ); index++ ) { | ||
230 | if ( pmenu-> text ( pmenu-> idAt ( index )). compare ( t ) > 0 ) | ||
231 | break; | ||
232 | } | ||
233 | |||
234 | pmenu->insertItem( app->pixmap(), t, app->id(), index ); | ||
227 | } | 235 | } |
228 | result=TRUE; | 236 | result=TRUE; |
229 | } | 237 | } |