author | llornkcor <llornkcor> | 2004-07-08 08:43:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-07-08 08:43:12 (UTC) |
commit | 0dd3f56a7d0c79b251379831d1d53a80924d5eec (patch) (side-by-side diff) | |
tree | 22b618b7283192a83cdc6465b9d1eaca5eb8ae2e | |
parent | a53291faf419c90bf22db7cd6d6f26dece2053c1 (diff) | |
download | opie-0dd3f56a7d0c79b251379831d1d53a80924d5eec.zip opie-0dd3f56a7d0c79b251379831d1d53a80924d5eec.tar.gz opie-0dd3f56a7d0c79b251379831d1d53a80924d5eec.tar.bz2 |
dont add empty entry into bookmark list
-rw-r--r-- | noncore/apps/opie-gutenbrowser/gutenbrowser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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,13 +134,13 @@ Gutenbrowser::Gutenbrowser(QWidget *,const char*, WFlags ) config.setGroup( "Titles" ); QString tempTitle = config.readEntry( ramble, ""); config.setGroup( tempTitle); int index=config.readNumEntry( "LineNumber", -1 ); if( index != -1) { odebug << tempTitle << oendl; - bookmarksMenu->insertItem( tempTitle); + if(!tempTitle.isEmpty()) bookmarksMenu->insertItem( tempTitle); } } // QString gutenIndex= local_library + "GUTINDEX.ALL"; QString gutenIndex = QPEApplication::qpeDir()+ "/etc/gutenbrowser/GUTINDEX.ALL"; qDebug("gutenindex "+gutenIndex ); @@ -558,13 +558,13 @@ void Gutenbrowser::BeginBtn() { // int lines = Lview->numLines(); int pos = 0;//, i = 0; int i_topRow = Lview->topRow(); 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; int lastPage=1; int lineNo=0; QString s; |