summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-07-14 18:49:16 (UTC)
committer llornkcor <llornkcor>2003-07-14 18:49:16 (UTC)
commitab28f35bc3c9c184862ac19462322eed2be0f541 (patch) (unidiff)
tree99bff20a6ca5c4b19d972d72ca2ec9abbaaa0e9d
parenta62dda249a0b823e1aa006bbc502f72e9af7da95 (diff)
downloadopie-ab28f35bc3c9c184862ac19462322eed2be0f541.zip
opie-ab28f35bc3c9c184862ac19462322eed2be0f541.tar.gz
opie-ab28f35bc3c9c184862ac19462322eed2be0f541.tar.bz2
try to fix crash when insert drive. please test.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index d9fc8e4..5f050aa 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -172,16 +172,16 @@ void CategoryTabWidget::addItem( const QString& linkfile )
172 app=0; 172 app=0;
173 } 173 }
174 if ( !app || !app->file().isEmpty() ) { 174 if ( !app || !app->file().isEmpty() ) {
175 // A document 175 // A document
176 delete app; 176// delete app;
177 app = new DocLnk(linkfile); 177// app = new DocLnk(linkfile);
178 if ( app->fileKnown() ) { 178// if ( app->fileKnown() ) {
179 ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app); 179// ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app);
180 } else { 180// } else {
181 ((LauncherView*)(stack->widget(ids.count()-1)))->sort(); 181// ((LauncherView*)(stack->widget(ids.count()-1)))->sort();
182 delete app; 182// delete app;
183 } 183// }
184 return; 184 return;
185 } 185 }
186 // An application 186 // An application
187 for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { 187 for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) {