author | llornkcor <llornkcor> | 2003-07-14 18:49:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-07-14 18:49:16 (UTC) |
commit | ab28f35bc3c9c184862ac19462322eed2be0f541 (patch) (unidiff) | |
tree | 99bff20a6ca5c4b19d972d72ca2ec9abbaaa0e9d | |
parent | a62dda249a0b823e1aa006bbc502f72e9af7da95 (diff) | |
download | opie-ab28f35bc3c9c184862ac19462322eed2be0f541.zip opie-ab28f35bc3c9c184862ac19462322eed2be0f541.tar.gz opie-ab28f35bc3c9c184862ac19462322eed2be0f541.tar.bz2 |
try to fix crash when insert drive. please test.
-rw-r--r-- | core/launcher/launcher.cpp | 16 |
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 | |||
@@ -174,12 +174,12 @@ void CategoryTabWidget::addItem( const QString& linkfile ) | |||
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 | } |