summaryrefslogtreecommitdiff
path: root/core/launcher/startmenu.cpp
authorcniehaus <cniehaus>2002-11-21 10:41:31 (UTC)
committer cniehaus <cniehaus>2002-11-21 10:41:31 (UTC)
commita098d09ef14e4b41a0120dd431ef4777fd420042 (patch) (side-by-side diff)
tree0c428827e9f4b02c5c78d1037feb741d227edfc9 /core/launcher/startmenu.cpp
parent354951c2751663e0a2f4fffe3fd3be71908df8b7 (diff)
downloadopie-a098d09ef14e4b41a0120dd431ef4777fd420042.zip
opie-a098d09ef14e4b41a0120dd431ef4777fd420042.tar.gz
opie-a098d09ef14e4b41a0120dd431ef4777fd420042.tar.bz2
applied one of Simons patches.
Diffstat (limited to 'core/launcher/startmenu.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/startmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp
index 7373ea8..d9382d2 100644
--- a/core/launcher/startmenu.cpp
+++ b/core/launcher/startmenu.cpp
@@ -355,17 +355,17 @@ void StartMenu::loadApplets()
applet-> popup = applet-> iface-> popup ( this );
if ( applet-> popup )
applet-> id = launchMenu-> insertItem ( applet-> iface-> icon ( ), applet-> iface-> text ( ), applet-> popup );
else
applet-> id = launchMenu-> insertItem ( applet-> iface-> icon ( ), applet-> iface-> text ( ) );
applets.insert ( applet-> id, new MenuApplet(*applet));
}
- delete xapplets;
+ delete [] xapplets;
if ( sepId && ( launchMenu-> idAt ( launchMenu-> count ( ) - 1 ) == sepId )) { // no applets
launchMenu-> removeItem ( sepId );
sepId = 0;
}
if ( !launchMenu-> count ( )) // if we don't do this QPopupMenu will insert a dummy Separator, which won't go away later
sepId = launchMenu-> insertSeparator ( );