[PATCH] New feature: closed tabs trash bin as in Opera

Eduardo Robles Elvira edulix at gmail.com
Wed Apr 25 11:58:15 BST 2007


Hello dfaure & everyone,

I've been exchanging some emails with Jacek, a Qt fellow, talking about the 
deleteCommand and also about the konqueror implementation. Just for you 
know ;-)

Should we continue with the plan? A QUndoStack as an interface, and two Qlist: 
one global with Kio operations and one of closed tabs per each window.

Menawhile I've been trying to add support of saving history of each view as 
Opera and Firefox do. For example when firefox crashes and you restore 
session and it reopens all the tabs, each tab has the history list as it was 
before crashing. This is implemented inside saveConfig() and loadItem() 
functions.

Actualy it does not only save History but also post info etc. It mostly works 
but I'm getting some "about:blank" pages that I shouldn't when reopening a 
saved tab with more than one history entry, and also some warning "Malformed 
URL" each time I retrieve a saved Tab.

In order to test this feature I'm taking advantage of my current patch 
for "recently closed tabs" because that way I can test the saveConfig() and 
loadItem() just by closing a tab and then reopening it with for example 
Ctrl+Z.

I've been trying to debug konqueror to see where it fails, but I haven't had 
much success so far. I know that the popup shows when I call 
browserExtension()->restoreState( stream ); in line 842 of konq_view.cc.

This is the patch I'm working on. I'd like to know where it fails, to continue 
developing (both) features.

Greetings,
      Eduardo Robles Elvira aka Edulix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.history.zip
Type: application/x-zip
Size: 11734 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070425/6461795f/attachment.bin>


More information about the kfm-devel mailing list