Bladeren bron

Compute tmpPath in fileSave_loadList before using it (bugfix).

git-svn-id: file:///var/svn/tigccpp/trunk@428 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 jaren geleden
bovenliggende
commit
70bf657cc7
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      ktigcc/mainform.ui.h

+ 2 - 2
ktigcc/mainform.ui.h

@@ -842,11 +842,11 @@ void MainForm::fileSave_loadList(QListViewItem *category,void *fileListV,const Q
         relPath=absPath;
       }
       
+      tmpPath=*new_dir;
+      kurlNewFileName(tmpPath,relPath);
       if (tmpPath.path().compare(theFile->fileName)
           || (IS_EDITABLE_CATEGORY(category)
               && (theFile->isDirty || theFile->isNew))) {
-        tmpPath=*new_dir;
-        kurlNewFileName(tmpPath,relPath);
         if (IS_EDITABLE_CATEGORY(category)
             ?saveFileText(tmpPath.path(),theFile->textBuffer)
             :copyFile(theFile->fileName,tmpPath.path()))