summaryrefslogtreecommitdiffstats
path: root/konsole/konsole/keytrans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsole/konsole/keytrans.cpp')
-rw-r--r--konsole/konsole/keytrans.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/konsole/konsole/keytrans.cpp b/konsole/konsole/keytrans.cpp
index de35d49ff..bcf5228c7 100644
--- a/konsole/konsole/keytrans.cpp
+++ b/konsole/konsole/keytrans.cpp
@@ -360,7 +360,10 @@ void KeyTrans::readConfig()
TQCString txt =
#include "default.keytab.h"
;
- buf=TQT_TQIODEVICE(new TQBuffer(txt));
+ TQBuffer* newbuf;
+ newbuf = new TQBuffer();
+ newbuf->tqsetBufferFromCopy(txt);
+ buf=TQT_TQIODEVICE(newbuf);
}
else
{