size of qdiff windows invoked twice from qlog lost maximized flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Fix Released
|
Critical
|
Alexander Belchenko |
Bug Description
I found the way to reproduce it.
run bzr qlog
invoke qdiff for some revision -> all ok
close qdiff -> all ok
invoke qdiff for other revision -> qdiff window is no more maximized,
and corresponding setting disappears from qbzr.conf
So, second qdiff invocation from qlog resets maximized flag to nothing,
and even the line
diff_window_
disappears from qbzr.conf.
That's because in qbzr/lib/utils.py we have the following code in restoreSize:
if is_maximized in ("True", "1"):
Adding trace point after config.get_option I see the following:
first time for qdiff we read qdiff_window_
(unicode string), but second time we read the same option from the same
process as bool True. Why? I don't understand.
So the if statement in the second line is False for the second case.
The simplest fix is to extend the if statement, the better fix is to
adopt get_user_
Related branches
Changed in qbzr: | |
status: | Invalid → In Progress |
importance: | Undecided → Critical |
milestone: | none → 0.20.1 |
assignee: | nobody → Alexander Belchenko (bialix) |
summary: |
- size of qdiff windows invoked from qcommit (pending merge) is default + size of qdiff windows invoked twice from qlog lost maximized flag |
description: | updated |
I can't reproduce it now. Something weird.