Bug 295536 - One or more Tool views are wrongly open at kdevelop start in Code mode
Summary: One or more Tool views are wrongly open at kdevelop start in Code mode
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: all modes (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 15:25 UTC by gabriele monfardini
Modified: 2013-04-04 14:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gabriele monfardini 2012-03-08 15:25:02 UTC
When I start kdevelop tool views are sometimes opened when I think they should not.

It seems I can reproduce it in this (a bit involved) way.

1. Open kdevelop in Code mode without any open file.
2. No toolbar is opened
3. Open ProblemReporterView (at the bottom)
4. Close kdevelop

Now ~/.kde/share/config/kdeveloprc shows (I think correctly) the line

      view on bottom=org.kdevelop.ProblemReporterView

under the section [User Interface][Main Window 0][Area code]

5. Open again kdevelop. It opens correctly in Code mode with
ProblemReporterView opened
6. Close ProblemReporterView pressing the x
7. Close kdevelop

The line in ~/.kde/share/config/kdeveloprc has (I think correctly) disappeared

8. Open again kdevelop. It opens in Code mode **with
ProblemReporterView opened**
9 Close ProblemReporterView, close kdevelop and reopen it.
**ProblemReporterView is opened**

I've found also another interesting thing.

If after pass 8 I do:

9a. switch in Debug mode (or in Review mode)
10a. switch back in Code mode. **ProblemReporterView is now closed**
11a. Close and reopen kdevelop and now ProblemReporterView is closed

As a note whenever, in the previous procedure, I opened kdevelop from
the terminal it logged these lines

kdevelop(14708)/kdevplatform (shell)
KDevelop::SessionControllerPrivate::performRecovery: Starting recovery
from  .kde/share/apps/kdevelop/sessions/{254a4758-ee31-4462-a38c-8d62d70f3e3f}/recovery/current"

kdevelop(14708)/konsole Konsole::Session::run: Attempted to re-run an
already running session.
Comment 1 Aleix Pol 2013-04-04 03:09:35 UTC
I can reproduce, see:
https://git.reviewboard.kde.org/r/109829/
Comment 2 gabriele monfardini 2013-04-04 09:12:45 UTC
Glad to hear it.
It happens every time to me and to one of my colleague.
My kdevelop is compiled from git, his is packaged by kubuntu.
Comment 3 Aleix Pol 2013-04-04 10:46:36 UTC
Then maybe you can try the attached patch and see if something breaks? I've been using it for a couple of days without problems.
Comment 4 gabriele monfardini 2013-04-04 12:42:34 UTC
Hi, which patch?

this one https://git.reviewboard.kde.org/r/109829/diff/#index_header seems to be already been pushed in master with your last commit (d130d323).

Thus I can try master and report if the bug is fixed or if something breaks, right?
Comment 5 gabriele monfardini 2013-04-04 14:21:07 UTC
In my setup the patch fix the bug.

I've not noticed any strange behaviour at start (it correctly opens the file that were opened and with cursor in the correct line, toolbar position is correct).
I've played a little with code and all appears to work properly