From 799d45acd5591f01a681bdb910aa89e1612063dc Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Thu, 21 Apr 2005 16:05:59 +0000 Subject: [PATCH] recode schema kdwarnings svn path=/trunk/kdebase/konsole/; revision=406939 --- konsole/konsole.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/konsole/konsole.cpp b/konsole/konsole.cpp index 5bc10ba0..397b9e3d 100644 --- a/konsole/konsole.cpp +++ b/konsole/konsole.cpp @@ -3277,12 +3277,9 @@ void Konsole::setSchema(int numb, TEWidget* tewidget) ColorSchema* s = colors->find(numb); if (!s) { - kdWarning() << "No schema found. Using default." << endl; - s=(ColorSchema*)colors->at(0); - } - if (s->numb() != numb) - { - kdWarning() << "No schema with number " << numb << endl; + s = (ColorSchema*)colors->at(0); + kdWarning() << "No schema with serial #"<relPath()<<" (#"<numb()<<")." << endl; + s_kconfigSchema = s->relPath(); } if (s->hasSchemaFileChanged()) @@ -3298,7 +3295,7 @@ void Konsole::setSchema(const QString & path) if (!s) { s = (ColorSchema*)colors->at(0); //the default one - kdWarning() << "Could not find schema named " <relPath()<relPath()<relPath(); } if (s->hasSchemaFileChanged())