summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/helpwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/helpwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/helpwindow.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/noncore/apps/opie-gutenbrowser/helpwindow.cpp b/noncore/apps/opie-gutenbrowser/helpwindow.cpp
index 4bdac02..f444a2e 100644
--- a/noncore/apps/opie-gutenbrowser/helpwindow.cpp
+++ b/noncore/apps/opie-gutenbrowser/helpwindow.cpp
@@ -198,3 +198,3 @@ HelpWindow::~HelpWindow()
198 QFile f( QDir::currentDirPath() + "/.history" ); 198 QFile f( QDir::currentDirPath() + "/.history" );
199 f.open( IO_WriteOnly ); 199 if ( f.open( IO_WriteOnly ) ) {
200 QDataStream s( &f ); 200 QDataStream s( &f );
@@ -202,2 +202,3 @@ HelpWindow::~HelpWindow()
202 f.close(); 202 f.close();
203 }
203 204
@@ -209,3 +210,5 @@ HelpWindow::~HelpWindow()
209 QFile f2( QDir::currentDirPath() + "/.bookmarks" ); 210 QFile f2( QDir::currentDirPath() + "/.bookmarks" );
210 f2.open( IO_WriteOnly ); 211 if ( !f2.open( IO_WriteOnly ) )
212 return;
213
211 QDataStream s2( &f2 ); 214 QDataStream s2( &f2 );
@@ -215,12 +218,2 @@ HelpWindow::~HelpWindow()
215 218
216// void HelpWindow::about()
217// {
218// QMessageBox::about( this, "Gutenbrowser", "<p>Thanks to Trolltech for this</p>" );
219// }
220
221// void HelpWindow::aboutQt()
222// {
223// QMessageBox::aboutQt( this, "QBrowser" );
224// }
225
226void HelpWindow::openFile() 219void HelpWindow::openFile()
@@ -294,5 +287,9 @@ void HelpWindow::readHistory()
294{ 287{
295 if ( QFile::exists( QDir::currentDirPath() + "/.history" ) ) { 288 if ( !QFile::exists( QDir::currentDirPath() + "/.history" ) )
289 return;
290
296 QFile f( QDir::currentDirPath() + "/.history" ); 291 QFile f( QDir::currentDirPath() + "/.history" );
297 f.open( IO_ReadOnly ); 292 if ( !f.open( IO_ReadOnly ) )
293 return;
294
298 QDataStream s( &f ); 295 QDataStream s( &f );
@@ -303,3 +300,2 @@ void HelpWindow::readHistory()
303 } 300 }
304}
305 301
@@ -307,5 +303,8 @@ void HelpWindow::readBookmarks()
307{ 303{
308 if ( QFile::exists( QDir::currentDirPath() + "/.bookmarks" ) ) { 304 if ( !QFile::exists( QDir::currentDirPath() + "/.bookmarks" ) )
305 return;
306
309 QFile f( QDir::currentDirPath() + "/.bookmarks" ); 307 QFile f( QDir::currentDirPath() + "/.bookmarks" );
310 f.open( IO_ReadOnly ); 308 if ( !f.open( IO_ReadOnly ) )
309 return;
311 QDataStream s( &f ); 310 QDataStream s( &f );
@@ -314,3 +313,2 @@ void HelpWindow::readBookmarks()
314 } 313 }
315}
316 314