Bug 339699 - Commit 0f149f44 broke Konqueror's session management
Summary: Commit 0f149f44 broke Konqueror's session management
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: session restore (show other bugs)
Version: 4.14.1
Platform: Debian testing Linux
: NOR major
Target Milestone: ---
Assignee: Eduardo Robles Elvira
URL: https://bugs.debian.org/cgi-bin/bugre...
Keywords:
: 339968 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-05 12:30 UTC by pat_h
Modified: 2015-01-11 11:19 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pat_h 2014-10-05 12:30:07 UTC
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763281 for details.

Reproducible: Always

Steps to Reproduce:
1. Open page in Konqueror
2. Log off
3. Log in

Actual Results:  
Konqueror opens with empty tab

Expected Results:  
Konqueror opens with page

The version is 4.14 (unselectable above)
Comment 1 Christoph Feck 2014-10-05 13:31:03 UTC
Adding committer.
Comment 2 Burkhard Lück 2014-10-06 16:46:31 UTC
confirmed with 14.0 + 14.1 from distribution (kubuntu 14.04 + ppa) and with kde 4.14 compiled from sources.
Comment 3 pat_h 2014-10-06 17:24:12 UTC
I just noted, that it's not explicit in the bug report's description: The patch already exists, it's simply reverting 0f149f44, which is a very small commit (it does not have to be reverted completely, but it's obvious when looking at it).
Comment 4 Christoph Feck 2014-10-16 22:11:01 UTC
*** Bug 339968 has been marked as a duplicate of this bug. ***
Comment 5 pat_h 2014-11-05 10:06:23 UTC
Is there anything more I can do not being a KDE developer?

I mean this is a bug generating quite a lot of extra work for some users, the bug itself is confirmed, the fix is known, it works for me now for a month, but it does not get fixed in KDE?

Is there something more I am supposed to do or is this the normal timeframe for fixing a bug in KDE? This is a serous question as I do not know the details of KDE's workflow.
Comment 6 Christoph Feck 2014-11-05 22:37:59 UTC
The Konqueror maintainer did not have the time yet to check this issue. If the fix is obvious to you, please suggest a patch (here or at reviewboard.kde.org).
Comment 7 David Faure 2014-11-09 16:21:28 UTC
What is so "obviously" wrong about commit 0f149f44696 ? Please explain the patch you have in mind, to fix this without reintroducing queryExit()?
Comment 8 David Faure 2014-11-09 16:27:39 UTC
Ah - does it work better if you swap the tests?


--- a/konqueror/src/konqmainwindow.cpp
+++ b/konqueror/src/konqmainwindow.cpp
@@ -5190,7 +5190,7 @@ void KonqMainWindow::closeEvent( QCloseEvent *e )
           QApplication::sendEvent( (*it)->part()->widget(), e );
   }
   KParts::MainWindow::closeEvent( e );
-  if (stayPreloaded() && !kapp->sessionSaving()) {
+  if (!kapp->sessionSaving() && stayPreloaded()) {
       e->ignore();
       hide();
   }

We don't want to call stayPreloaded() when closing the session.

Feel free to drop me a private email if this fix works for you; I am too swamped by bugzilla.
Comment 9 Burkhard Lück 2014-11-10 07:18:39 UTC
(In reply to David Faure from comment #8)
> Ah - does it work better if you swap the tests?
> 
No session management ist still broken as before the swap
Comment 10 David Faure 2014-11-11 11:11:55 UTC
I just tested it, and the patch fixes the issue for me...
Comment 11 David Faure 2014-11-11 11:22:42 UTC
Git commit dcc45ea70b0b408c8017c6f423b978fe6ca6163a by David Faure.
Committed on 11/11/2014 at 11:17.
Pushed by dfaure into branch 'KDE/4.14'.

Unbreak session management: don't clear this window (for reusing) while saving.
FIXED-IN: 4.14.4

(maybe this can be added to 4.14.3?)
CCMAIL: release-team@kde.org

M  +1    -1    konqueror/src/konqmainwindow.cpp

http://commits.kde.org/kde-baseapps/dcc45ea70b0b408c8017c6f423b978fe6ca6163a
Comment 12 Christoph Feck 2014-11-11 11:57:05 UTC
Oh, 14.12 is already branched, so right now, the commit is lost in a dead branch (4.14.3 is the last release from the KDE/4.14 branch).

Reopening until it is clear if we can get it into 4.14.3, but I had the impression it is released today. Otherwise, the commit needs to be in master or 14.12 branch.