[Konsole-devel] [Bug 104741] "Save Sessions Profile" does not save scrollbar position correctly
Kurt V.Hindenburg
kurt.hindenburg at kdemail.net
Sat Sep 17 23:46:54 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=104741
kurt.hindenburg kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From kurt.hindenburg kdemail net 2005-09-18 01:46 -------
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)
More information about the konsole-devel
mailing list