| Summary: | Ctrl-Alt-N doesn't work in session-restored Konsole instances | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Stephan Binner <binner> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | CLOSED FIXED | ||
| Severity: | grave | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Stephan Binner
2001-07-21 20:23:21 UTC
http://lists.kde.org/?l=kde-devel&m=99585524400829&w=2 solved it for me. Here are the generated patches please somebody applies this before 2.2: Index: main.C =================================================================== RCS file: /home/kde/kdebase/konsole/src/main.Cv retrieving revision 1.189 diff -b -u -3 -p -r1.189 main.C --- main.C2001/07/13 21:10:151.189 +++ main.C2001/07/26 10:18:54 @@ -2547 +2547 @@ int main(int argc char* argv[]) //wname = sessionconfig->readEntry("class"wname).latin1(); //shell = ""; //FIXME If we can just restore the command to a char * we'd be golden. - sPgm = sessionconfig->readEntry("Pgm0" "failed").latin1(); + sPgm = sessionconfig->readEntry("Pgm0" "failed"); //*cTitle = sPgm; //cTitle+=" : "; const char * myCmd = strdup(sPgm.latin1()); @@ -2877 +2877 @@ int main(int argc char* argv[]) tmpPgm+= (char) (n2+49); sPgm=sessionconfig->readEntry(tmpPgm shell); m->setArgs(eargs); - m->setPgm(sPgm); + m->setPgm(myCmd); // QTimer::singleShot(5000mSLOT(newSession())); m->newSession(); // kdDebug(1211) << "Adding title tmpTitle = " << sessionconfig->readEntry(tmpTitle m->title); Index: konsole.C =================================================================== RCS file: /home/kde/kdebase/konsole/src/konsole.Cv retrieving revision 1.147 diff -b -u -3 -p -r1.147 konsole.C --- konsole.C2001/07/16 23:56:251.147 +++ konsole.C2001/07/26 10:19:24 @@ -18317 +18317 @@ void Konsole::setArgs(QStrList newArgs) void Konsole::setPgm(QString newPgm) { // QStrList args = new QStrList(); - pgm = newPgm.latin1(); + pgm = strdup(newPgm.latin1()); } #include "konsole.moc" Sorry. I fixed this 6 days ago but didn't have access to cvs from my vacation spot. Its committed now. -Chris |