Bug 318306

Summary: Ark doesn't update caption and recent files list after archive opening.
Product: [Applications] ark Reporter: Alexandr Akulich <akulichalexander>
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: normal Keywords: regression
Priority: NOR    
Version: 2.19   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.3
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 314596    

Description Alexandr Akulich 2013-04-13 19:36:09 UTC
Summary is enough.

Reproducible: Always

Steps to Reproduce:
1. Open archive
2a. Look onto caption
2b. Open recent files menu.
Actual Results:  
a) Caption is always "Ark"
b) Recent files menu doesn't contain last file entry.

Expected Results:  
a) Caption like "ark-4.10.2.tar.xz - Ark"
b) Recent files menu with first entry "ark-4.10.2.tar.xz".

Line 216 at MainWindow.cpp always return false due to bug at end of Ark::Part::openFile(), which  operate with "QScopedPointer<Kerfuffle::Archive> archive" in old way (Kerfuffle::Archive *archive).
Checking "archive" after "archive.take()" leads in bug.
Comment 1 Alexandr Akulich 2013-04-13 19:37:58 UTC
Review request: https://git.reviewboard.kde.org/r/109953/
Comment 2 Raphael Kubo da Costa 2013-04-27 12:45:53 UTC
Git commit 03b5810f1e68f13fe564b873ffdd01fe82ba6aca by Raphael Kubo da Costa, on behalf of Alexandr Akulich.
Committed on 27/04/2013 at 11:18.
Pushed by rkcosta into branch 'KDE/4.10'.

Fix of Ark::Part::openFile().

Repair window caption and recent files menu updating once archive is opened.

REVIEW: 109953

M  +2    -2    part/part.cpp

http://commits.kde.org/ark/03b5810f1e68f13fe564b873ffdd01fe82ba6aca
Comment 3 Raphael Kubo da Costa 2013-04-27 12:47:23 UTC
FWIW, I've also merged this into master.