summaryrefslogtreecommitdiff
authorzecke <zecke>2002-03-30 23:55:35 (UTC)
committer zecke <zecke>2002-03-30 23:55:35 (UTC)
commit04158decf6fa76d966be178d07e1895336a47bd9 (patch) (unidiff)
tree4c8e254088074278ed3a98b021185d24f6dc42e0
parent5d12c8fb75458262f6414073759b4c610f615525 (diff)
downloadopie-04158decf6fa76d966be178d07e1895336a47bd9.zip
opie-04158decf6fa76d966be178d07e1895336a47bd9.tar.gz
opie-04158decf6fa76d966be178d07e1895336a47bd9.tar.bz2
fix crash
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index 1807575..128292f 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -172,6 +172,7 @@ void OFileSelector::init()
172 QString currMime; 172 QString currMime;
173 if( m_mimeCheck != 0 ) 173 if( m_mimeCheck != 0 )
174 currMime = m_mimeCheck->currentText(); 174 currMime = m_mimeCheck->currentText();
175
175 updateMimes(); 176 updateMimes();
176 m_select = new FileSelector( currMime == "All" ? QString::null : currMime , m_stack, "fileselector", FALSE, FALSE ); 177 m_select = new FileSelector( currMime == "All" ? QString::null : currMime , m_stack, "fileselector", FALSE, FALSE );
177 m_stack->addWidget(m_select, NORMAL ); 178 m_stack->addWidget(m_select, NORMAL );
@@ -337,12 +338,19 @@ void OFileSelector::updateLay()
337 338
338 delItems(); 339 delItems();
339 delete m_checkPerm; 340 delete m_checkPerm;
341 m_checkPerm = 0;
340 delete m_edit; 342 delete m_edit;
343 m_edit = 0;
341 delete m_fnLabel; 344 delete m_fnLabel;
345 m_fnLabel = 0;
342 delete m_ok; 346 delete m_ok;
347 m_ok = 0;
343 delete m_cancel; 348 delete m_cancel;
349 m_cancel = 0;
344 delete m_mimeCheck; 350 delete m_mimeCheck;
351 m_mimeCheck = 0;
345 delete m_viewCheck; 352 delete m_viewCheck;
353 m_viewCheck = 0;
346 delete m_select; // test 354 delete m_select; // test
347 delete m_stack; 355 delete m_stack;
348 //delete m_list; 356 //delete m_list;