Summary: | "Save Sessions Profile" does not save scrollbar position correctly | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Justin Mason <jm-kde> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Justin Mason
2005-04-28 23:35:34 UTC
Yea, it is confirmed.... I'll see what I can do about it shortly. SVN commit 461550 by hindenburg: Use correct scrollbar location for all sessions when using --profile=file BUG: 104741 M +1 -0 TEWidget.h M +8 -0 konsole.cpp --- branches/KDE/3.5/kdebase/konsole/konsole/TEWidget.h #461549:461550 @@ -50,6 +50,7 @@ void setColorTable(const ColorEntry table[]); void setScrollbarLocation(int loc); + int getScrollbarLocation() { return scrollLoc; } enum { SCRNONE=0, SCRLEFT=1, SCRRIGHT=2 }; void setScroll(int cursor, int lines); --- branches/KDE/3.5/kdebase/konsole/konsole/konsole.cpp #461549:461550 @@ -1614,6 +1614,14 @@ b_autoResizeTabs = config->readBoolEntry("AutoResizeTabs", false); s_encodingName = config->readEntry( "EncodingName", "" ).lower(); + + // The scrollbar location only needs to be changed when the given + // profile scrollbar entry differs from the konsolerc scrollbar entry. + QPtrList<TEWidget> tes = activeTEs(); + for (TEWidget *_te = tes.first(); _te; _te = tes.next()) { + if (_te->getScrollbarLocation() != n_scroll) + _te->setScrollbarLocation(n_scroll); + } } if (m_menuCreated) |