Diffstat (limited to 'noncore/apps/opie-gutenbrowser') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/gutenbrowser.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/opie-gutenbrowser/helpwindow.cpp | 34 |
2 files changed, 16 insertions, 24 deletions
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp index 733db17..8b02f9f 100644 --- a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp +++ b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp | |||
@@ -847,5 +847,2 @@ bool Gutenbrowser::load( const char *fileName) { | |||
847 | void Gutenbrowser::Search() { | 847 | void Gutenbrowser::Search() { |
848 | |||
849 | // if( searchDlg->isHidden()) | ||
850 | { | ||
851 | odebug << "Starting search dialog" << oendl; | 848 | odebug << "Starting search dialog" << oendl; |
@@ -853,3 +850,2 @@ void Gutenbrowser::Search() { | |||
853 | searchDlg->setCaption( tr( "Etext Search" )); | 850 | searchDlg->setCaption( tr( "Etext Search" )); |
854 | // searchDlg->setLabel( "- searches etext"); | ||
855 | connect( searchDlg,SIGNAL( search_signal()),this,SLOT( search_slot())); | 851 | connect( searchDlg,SIGNAL( search_signal()),this,SLOT( search_slot())); |
@@ -861,4 +857,2 @@ void Gutenbrowser::Search() { | |||
861 | searchDlg->show(); | 857 | searchDlg->show(); |
862 | searchDlg->result(); | ||
863 | } | ||
864 | } | 858 | } |
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 | |||
226 | void HelpWindow::openFile() | 219 | void 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 | ||