[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-2/kile/kile
From:       Sarang Lakare <sarang () users ! sourceforge ! net>
Date:       2003-06-23 18:33:59
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic