KDE
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists KDE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old April 11th, 2008, 06:01 AM
Eduardo Robles Elvira
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Fix for a problem with loadItem in konqviewmanager

Hello people,

As can be seen in KonqFrameContainer::saveConfig(), that function doesn't
necesarily save two childs. But when KonqViewManager::loadItem() is loading a
container it wants the container to have obligatory two childs, otherwise it
shows with kDebug() a "profile loading error" and loads a default url. The
patch attached to this emails fixes this problem. Should I commit? =)

Greetings,
Eduardo Robles Elvira.
--
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man." (George Bernard Shaw)

PGP SIGNATURE
Version: GnuPG v1.4.6 (GNU/Linux)


tCflVRfZYNaiG28GsZzlTYI=
=FPRj
PGP SIGNATURE

Reply With Quote
  #2  
Old April 20th, 2008, 05:31 PM
Eduardo Robles Elvira
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Fix for a problem with loadItem in konqviewmanager

El Jueves 17 Abril 2008, David Faure :
Friday 11 April 2008, Eduardo Robles Elvira wrote:
Hello people,
>

As can be seen in KonqFrameContainer::saveConfig(), that function doesn't
necesarily save two childs.
>

Well a KonqFrameContainer is a splitter; I don't really understand how it
could not have two children, except in error cases.
Do you have a testcase about how to end up with either child being 0 ?
>

But when KonqViewManager::loadItem() is loading a
container it wants the container to have obligatory two childs, otherwise
it shows with kDebug() a "profile loading error"
>

Well yes it's sort of an error. I'm fine with the added fallback-loading
code (if it wouldn't copy/paste existing code but factorize it instead, as
said on irc), but I would still like us to get rid of the error case where
a splitter remains with only one child in it. KonqViewManager is supposed
to get rid of the splitter when this happens.

I think you're right, I was trying to fix a bug which apparently I didn't fix,
and this doesn't seem to fix the way to fix it anyway, so I will revert the
changes if you don't mind =)

But actually, you can get a Container with only one children; though that can
only that it only happens when konqueror is about to crash so it's not an
expected behavious, as you say.

I think I have tracked down a bit the bug which was not restoring well saved
windows. The problem happens when you save a window with the navigation panel
being shown and then try to restore it: loadItem doesn't restore it
correctly. So I think it's all related to the navigation panel and also to
ToggleView=true, because if it's false for the vew containing the nav. panel
then it restores correctly the window (with the nav panel not being shown).

Now we need to know why the nav panel is not being restored correctly, and how
to fix it of course =).

--
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man." (George Bernard Shaw)

PGP SIGNATURE
Version: GnuPG v1.4.6 (GNU/Linux)


NEvH3D390tzbL5Y/l8EEuTw=
=KIvw
PGP SIGNATURE

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists KDE > Fix for a problem with loadItem in konqviewmanager


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway