projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This should fix a bug resulting in a crash, when a IrcUser object was not destroyed...
[quassel.git]
/
src
/
uisupport
/
uistyle.cpp
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
8c3afaa
..
c81131f
100644
(file)
--- a/
src/uisupport/uistyle.cpp
+++ b/
src/uisupport/uistyle.cpp
@@
-160,11
+160,11
@@
UiStyle::StyledText UiStyle::styleString(QString s) {
fmtList.clear(); fmtList.append(None);
curFmtRng.format = format(None);
fgCol = bgCol = -1;
fmtList.clear(); fmtList.append(None);
curFmtRng.format = format(None);
fgCol = bgCol = -1;
- length =
1
;
+ length =
2
;
} else if(s[pos+1] == 'R') { // reverse
// TODO: implement reverse formatting
} else if(s[pos+1] == 'R') { // reverse
// TODO: implement reverse formatting
- length =
1
;
+ length =
2
;
} else { // all others are toggles
QString code = QString("%") + s[pos+1];
if(s[pos+1] == 'D') code += s[pos+2];
} else { // all others are toggles
QString code = QString("%") + s[pos+1];
if(s[pos+1] == 'D') code += s[pos+2];