summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-08 23:13:24 (UTC)
committer llornkcor <llornkcor>2004-04-08 23:13:24 (UTC)
commit8ea8d193ff14250d4dbc0fc3d4699e5888ba35fe (patch) (unidiff)
treefced2b714b39a5f2747e36a9784f6fc131e77c55
parent502281033b395bb5f089a2bbaa86f9ba423dec84 (diff)
downloadopie-8ea8d193ff14250d4dbc0fc3d4699e5888ba35fe.zip
opie-8ea8d193ff14250d4dbc0fc3d4699e5888ba35fe.tar.gz
opie-8ea8d193ff14250d4dbc0fc3d4699e5888ba35fe.tar.bz2
fix segfault in d'tor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/LibraryDialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp
index 157a3da..5b22b00 100644
--- a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp
+++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp
@@ -77,31 +77,31 @@ LibraryDialog::LibraryDialog( QWidget* parent, const char* name , bool modal, W
77 77
78 config.setGroup("General"); 78 config.setGroup("General");
79 downDir =config.readEntry( "DownloadDirectory",local_library); 79 downDir =config.readEntry( "DownloadDirectory",local_library);
80 qDebug("downDir is "+downDir); 80 qDebug("downDir is "+downDir);
81 newindexLib.setName( old_index); 81 newindexLib.setName( old_index);
82 indexLib.setName( old_index); 82 indexLib.setName( old_index);
83 83
84 new QPEDialogListener(this); 84 new QPEDialogListener(this);
85} 85}
86 86
87LibraryDialog::~LibraryDialog() 87LibraryDialog::~LibraryDialog()
88{ 88{
89 delete QList_Item2; 89 // delete QList_Item2;
90 delete QList_Item1; 90 // delete QList_Item1;
91 delete QList_Item3; 91 // delete QList_Item3;
92 delete QList_Item4; 92 // delete QList_Item4;
93 delete QList_Item5; 93 // delete QList_Item5;
94 94
95 saveConfig(); 95 //saveConfig();
96} 96}
97 97
98 /*This groks using PGWHOLE.TXT */ 98 /*This groks using PGWHOLE.TXT */
99void LibraryDialog::Newlibrary() 99void LibraryDialog::Newlibrary()
100{ 100{
101#ifndef Q_WS_QWS //sorry embedded gutenbrowser cant use zip files 101#ifndef Q_WS_QWS //sorry embedded gutenbrowser cant use zip files
102 //qDebug("Opening new library index %s",newindexLib); 102 //qDebug("Opening new library index %s",newindexLib);
103 if ( newindexLib.open( IO_ReadOnly) ) { 103 if ( newindexLib.open( IO_ReadOnly) ) {
104 setCaption( tr( "Library Index - using master pg index." ) );// file opened successfully 104 setCaption( tr( "Library Index - using master pg index." ) );// file opened successfully
105 QTextStream indexStream( &newindexLib ); 105 QTextStream indexStream( &newindexLib );
106 QString indexLine; 106 QString indexLine;
107 while ( !indexStream.atEnd() ) { // until end of file.. 107 while ( !indexStream.atEnd() ) { // until end of file..