[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror
From:       Zack Rusin <zack () kde ! org>
Date:       2003-03-31 17:53:49
[Download RAW message or body]

CVS commit by zrusin: 

And that fixes #47814 (which is #1 on the list of the most hated bugs). I'm not
sure whether we should have some kind of special page with a sign that says "loading"
or just an empty page like we'll have now.


  M +13 -3     konq_mainwindow.cc   1.1156


--- kdebase/konqueror/konq_mainwindow.cc  #1.1155:1.1156
@@ -451,6 +451,15 @@ void KonqMainWindow::openURL( KonqView *
 
   KonqView *view = _view;
-  if ( !view  && !req.newTab)
+  if ( !view  && !req.newTab )
     view = m_currentView; /* Note, this can be 0L, e.g. on startup */
+  else if ( !view && req.newTab ) {
+    KConfig *config = KGlobal::config();
+    KConfigGroupSaver cs( config, QString::fromLatin1("FMSettings") );
+    bool openAfterCurrentPage = config->readBoolEntry( "OpenAfterCurrentPage", false \
); +    view = m_pViewManager->addTab(QString::null,
+                                  QString::null,
+                                  false,
+                                  openAfterCurrentPage);
+  }
 
   if ( view )
@@ -757,5 +765,7 @@ bool KonqMainWindow::openView( QString s
           childView->openURL( url, originalURL, req.nameFilter );
   }
-  kdDebug(1202) << "KonqMainWindow::openView ok=" << ok << " bOthersFollowed=" << \
bOthersFollowed << " returning " << (ok || bOthersFollowed) << endl; +  kdDebug(1202) \
<< "KonqMainWindow::openView ok=" << ok << " bOthersFollowed=" << bOthersFollowed << \
" returning " +                << (ok || bOthersFollowed)
+                << endl;
   return ok || bOthersFollowed;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic