-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114780/#review46575
-----------------------------------------------------------


This review has been submitted with commit 
ce040ab74f812cca04ed6f7dae02e8a13cfcfc04 by Dawit Alemayehu to branch KDE/4.12.

- Commit Hook


On Jan. 1, 2014, 4:03 p.m., Dawit Alemayehu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114780/
> -----------------------------------------------------------
> 
> (Updated Jan. 1, 2014, 4:03 p.m.)
> 
> 
> Review request for KDE Base Apps and David Faure.
> 
> 
> Bugs: 301974
>     http://bugs.kde.org/show_bug.cgi?id=301974
> 
> 
> Repository: kde-baseapps
> 
> 
> Description
> -------
> 
> This patch fixes part of a problem that was causing Konqueror to crash when 
> undo'ing a previously closed window. 
> 
> The actual cause of the crash is the restored window was not removed from 
> KonqClosedWindowsManager before it was restored. As a result, the "Undo: 
> Closed Window" action was enabled under the edit menu even when there was no 
> window other closed window! The reason this happens is because the current 
> action that is being undone was note removed from the undo manager before the 
> action itself was carried out. Hence, when the closed window starts it checks 
> and see there was a window closed before (itself) that can be restored and 
> hence enables the "Edit->Undo:..." menu. With this fix, the reopened window 
> will not longer show that there is another Undo action when there isn't one.
> 
> On a related note I have already fixed the actual place where the crash was 
> happening as a result of this bug, KIO::FileUndoManager::undo. Though it was 
> not the source of the crash, that code should not invoke first/last on a list 
> without first checking for empty. 
> 
> 
> Diffs
> -----
> 
>   konqueror/src/konqundomanager.cpp cdbb1bd 
> 
> Diff: https://git.reviewboard.kde.org/r/114780/diff/
> 
> 
> Testing
> -------
> 
> 1. Close all Konqueror instances.
> 2. Remove the [Undo] section from konquerorrc.
> 3. Launch Konqueror and visit a site or browse a directory.
> 4. Close it.
> 5. Launch it again and click on Edit->Undo: Closed Window.
> 6. In the new Konqueror window that is opened with the site or directory you 
> last visited, repeat step #5.
> 
> Step #6 should result in a crash.
> 
> 
> Thanks,
> 
> Dawit Alemayehu
> 
>

Reply via email to