From kde-commits Mon Jun 23 18:33:59 2003 From: Sarang Lakare Date: Mon, 23 Jun 2003 18:33:59 +0000 To: kde-commits Subject: kdeextragear-2/kile/kile X-MARC-Message: https://marc.info/?l=kde-commits&m=105639324616122 CVS commit by sarang: fixed # problem in QString to KURL conversion - needs KDE 3.1 or above M +4 -4 kile.cpp 1.40 --- kdeextragear-2/kile/kile/kile.cpp #1.39:1.40 @@ -122,5 +122,5 @@ if (!lastDocument.isEmpty()) if (fi.exists() && fi.isReadable()) currentDir=fi.dirPath(); } -KileFS->setDir(KURL(currentDir)); +KileFS->setDir(KURL::fromPathOrURL(currentDir)); KileFS->comboEncoding->lineEdit()->setText(input_encoding); @@ -618,5 +618,5 @@ void Kile::load( const QString &f ) UpdateCaption(); UpdateLineColStatus(); - fileOpenRecentAction->addURL(KURL(f)); + fileOpenRecentAction->addURL(KURL::fromPathOrURL(f)); ShowStructure(); } @@ -793,5 +793,5 @@ void Kile::fileSave(bool amAutoSaving ) currentEditorView()->editor->setModified(false); fn=getName(); - fileOpenRecentAction->addURL(KURL(fn)); + fileOpenRecentAction->addURL(KURL::fromPathOrURL(fn)); } } @@ -5127,5 +5127,5 @@ setAutosaveInterval(autosaveinterval); for ( ; it != recentFilesList.end(); ++it ) { - fileOpenRecentAction->addURL(KURL(*it)); + fileOpenRecentAction->addURL(KURL::fromPathOrURL(*it)); } // Now delete this recent files entry as we are now using a separate