From kde-commits Wed Dec 24 14:00:22 2003 From: Dawit Alemayehu Date: Wed, 24 Dec 2003 14:00:22 +0000 To: kde-commits Subject: kdebase/konqueror X-MARC-Message: https://marc.info/?l=kde-commits&m=107227446819469 CVS commit by adawit: - Fix for BR# 47512: "Malformed URL" error when splitting an empty view (normal). Reviewed by David. CCMAIL:47512-done@bugs.kde.org M +11 -3 konq_viewmgr.cc 1.254 --- kdebase/konqueror/konq_viewmgr.cc #1.253:1.254 @@ -1455,7 +1455,15 @@ void KonqViewManager::loadItem( KConfig if ( openURL ) { - KURL url( defaultURL ); - if ( cfg.hasKey( key ) ) // if it has it, we load it, even if empty - url = KURL( cfg.readPathEntry( key ) ); + KURL url; + + if ( cfg.hasKey( key ) ) + { + QString u = cfg.readPathEntry( key ); + if ( u.isEmpty() ) + u = QString::fromLatin1("about:blank"); + url = u; + } + else + url = defaultURL; if ( !url.isEmpty() )