From 0dd3f56a7d0c79b251379831d1d53a80924d5eec Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 08 Jul 2004 08:43:12 +0000 Subject: dont add empty entry into bookmark list --- diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp index d0af114..644fae8 100644 --- a/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp +++ b/noncore/apps/opie-gutenbrowser/gutenbrowser.cpp @@ -134,10 +134,10 @@ Gutenbrowser::Gutenbrowser(QWidget *,const char*, WFlags ) config.setGroup( "Titles" ); QString tempTitle = config.readEntry( ramble, ""); config.setGroup( tempTitle); - int index=config.readNumEntry( "LineNumber", -1 ); + int index = config.readNumEntry( "LineNumber", -1 ); if( index != -1) { odebug << tempTitle << oendl; - bookmarksMenu->insertItem( tempTitle); + if(!tempTitle.isEmpty()) bookmarksMenu->insertItem( tempTitle); } } @@ -561,7 +561,7 @@ void Gutenbrowser::BeginBtn() { QString LeftText;// = Lview->text(); - int linesPerPage = Lview->lastRow() - Lview->topRow(); +// int linesPerPage = Lview->lastRow() - Lview->topRow(); // int pages = (( linesPerPage / Lview->editSize() ) ) +1; // int pageN = 0; i_pageNum = 1; -- cgit v0.9.0.2